Home
last modified time | relevance | path

Searched refs:MS_BIND (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/kernel/containers/mountns/
Dmountns01.c68 if (mount(DIRB, DIRA, "none", MS_BIND, NULL) == -1) { in child_func()
90 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); in test()
100 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL); in test()
Dmountns02.c68 if (mount(DIRB, DIRA, "none", MS_BIND, NULL) == -1) { in child_func()
90 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); in test()
100 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL); in test()
Dmountns03.c81 if (mount(DIRB, DIRA, "none", MS_BIND, NULL) == -1) { in child_func()
103 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); in test()
116 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL); in test()
Dmountns04.c57 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); in test()
62 if (mount(DIRA, DIRB, "none", MS_BIND, NULL) == -1) { in test()
/external/strace/xlat/
Dmount_flags.h32 #if !(defined(MS_BIND) || (defined(HAVE_DECL_MS_BIND) && HAVE_DECL_MS_BIND))
33 # define MS_BIND 4096 macro
108 XLAT(MS_BIND),
Dmount_flags.in11 MS_BIND 4096
/external/linux-kselftest/tools/testing/selftests/mount/
Dunprivileged-remount-test.c230 MS_REMOUNT | MS_BIND | remount_flags, NULL) != 0) { in test_unpriv_remount()
237 MS_REMOUNT | MS_BIND | invalid_flags, NULL) == 0) { in test_unpriv_remount()
296 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount()
303 MS_REMOUNT | MS_BIND | orig_mnt_flags , NULL); in test_priv_mount_unpriv_remount()
/external/strace/
Dmount.c55 else if (flags & (MS_BIND | MS_MOVE | MS_SHARED in SYS_FUNC()
DChangeLog-CVS1724 [LINUX] (sys_mount): If neither MS_BIND nor MS_MOVE bits are
2372 * system.c [LINUX] (MS_MANDLOCK, MS_NOATIME, MS_NODIRATIME, MS_BIND,
2376 [LINUX] (sys_mount): If any of (MS_BIND|MS_MOVE|MS_REMOUNT) bits are
/external/strace/tests-m32/
Dmount.c78 rc = mount(source, target, fstype, MS_BIND, data); in main()
/external/strace/tests-mx32/
Dmount.c78 rc = mount(source, target, fstype, MS_BIND, data); in main()
/external/strace/tests/
Dmount.c78 rc = mount(source, target, fstype, MS_BIND, data); in main()
/external/ltp/testcases/kernel/syscalls/mount/
Dmount05.c71 TEST(mount(mntpoint_src, mntpoint_des, fstype, MS_BIND, NULL)); in main()
Dmount06.c141 if (mount(path_name, path_name, "none", MS_BIND, NULL) == -1) in setup()
/external/iproute2/lib/
Dnamespace.c37 if (mount(netns_name, etc_name, "none", MS_BIND, NULL) < 0) { in bind_etc()
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_filesystem_test.c407 if (mount("/tmp/mount/", "/tmp/mount_bind/", NULL, MS_BIND, in main()
438 if (mount("/tmp/mount/", "/tmp/mount_bind/", NULL, MS_BIND, in main()
/external/kernel-headers/original/uapi/linux/
Dfs.h117 #define MS_BIND 4096 macro
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify06.c256 SAFE_MOUNT(cleanup, MOUNT_NAME, MOUNT_NAME, NULL, MS_BIND, NULL); in setup()
/external/selinux/sandbox/
Dseunshare.c269 if (mount(src, dst, NULL, MS_BIND | flags, NULL) < 0) { in seunshare_mount()
282 if (mount("/tmp", "/var/tmp", NULL, MS_BIND | flags, NULL) < 0) { in seunshare_mount()
/external/iproute2/ip/
Dipnetns.c645 if (mount(NETNS_RUN_DIR, NETNS_RUN_DIR, "none", MS_BIND, NULL)) { in netns_add()
668 if (mount("/proc/self/ns/net", netns_path, "none", MS_BIND, NULL) < 0) { in netns_add()
/external/toybox/toys/lsb/
Dmount.c169 flags |= MS_BIND; in mount_filesystem()
/external/minijail/
Dlibminijail.c709 unsigned long flags = MS_BIND; in minijail_bind()
1155 if ((m->flags & MS_BIND) && (m->flags & MS_RDONLY)) { in mount_one()
1216 if (mount(j->chrootdir, j->chrootdir, "bind", MS_BIND | MS_REC, "")) in enter_pivot_root()
/external/iproute2/tc/
Dtc_bpf.c272 if (mount(target, target, "none", MS_BIND, NULL)) { in bpf_mnt_fs()