Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/mount-notify/
H A Dmount-notify_test.c247 ret = mount("/", "/", NULL, MS_BIND, NULL); in setup_mount_tree()
257 ret = mount("/", "/", NULL, MS_BIND, NULL); in TEST_F()
282 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
378 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
384 ret = mount("/a", "/b", NULL, MS_BIND, NULL); in TEST_F()
395 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
403 ret = mount("/", "/b", NULL, MS_BIND, NULL); in TEST_F()
450 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
453 ret = mount("/", "/a/b", NULL, MS_BIND, NULL); in TEST_F()
502 ret = mount("/a", "/a/new", NULL, MS_BIND, NULL); in TEST_F()
H A Dmount-notify_test_ns.c274 ret = mount("/", "/", NULL, MS_BIND, NULL); in setup_mount_tree()
284 ret = mount("/", "/", NULL, MS_BIND, NULL); in TEST_F()
309 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
405 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
411 ret = mount("/a", "/b", NULL, MS_BIND, NULL); in TEST_F()
422 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
430 ret = mount("/", "/b", NULL, MS_BIND, NULL); in TEST_F()
477 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
480 ret = mount("/", "/a/b", NULL, MS_BIND, NULL); in TEST_F()
529 ret = mount("/a", "/a/new", NULL, MS_BIND, NULL); in TEST_F()
/linux/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c231 MS_REMOUNT | MS_BIND | remount_flags, NULL) != 0) { in test_unpriv_remount()
238 MS_REMOUNT | MS_BIND | invalid_flags, NULL) == 0) { in test_unpriv_remount()
297 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount()
304 MS_REMOUNT | MS_BIND | orig_mnt_flags , NULL); in test_priv_mount_unpriv_remount()
/linux/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c238 ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL); in verify_ptmx_bind_mount()
265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); in verify_invalid_ptmx_bind_mount()
/linux/security/tomoyo/
H A Dmount.c209 } else if (flags & MS_BIND) { in tomoyo_mount_permission()
211 flags &= ~MS_BIND; in tomoyo_mount_permission()
/linux/samples/seccomp/
H A Duser-trap.c124 if (!(req->data.args[3] & MS_BIND)) in handle_req()
266 if (mount("/tmp/foo", "/tmp/foo", NULL, MS_BIND, NULL) < 0) { in main()
/linux/tools/include/uapi/linux/
H A Dmount.h24 #define MS_BIND 4096 macro
/linux/include/uapi/linux/
H A Dmount.h24 #define MS_BIND 4096 macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h24 #define MS_BIND 4096 macro
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c178 ret = mount(root_mntpoint, root_mntpoint, NULL, MS_BIND, NULL); in setup_namespace()
208 ret = mount("/", "/", NULL, MS_BIND, NULL);
697 if (mount(subdir, subdir, NULL, MS_BIND, 0)) { in main()
831 if (mount(subdir, subdir, 0, MS_BIND, NULL)) {
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c215 if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL)) in move_mount_set_group_supported()
/linux/tools/testing/selftests/proc/
H A Dproc-pidns.c78 ASSERT_SUCCESS(mount("/proc/self/ns/pid", "/tmp/dummy/pidns", NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
/linux/security/apparmor/
H A Dmount.c53 if (flags & MS_BIND) in audit_mnt_flags()
435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
H A Dlsm.c718 else if (flags & MS_BIND) in apparmor_sb_mount()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c407 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1032 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1441 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in TEST_F()
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c4595 ASSERT_EQ(0, mount(dir_s1d2, dir_s2d2, NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
5285 MS_BIND, NULL)); in FIXTURE_SETUP()
5847 NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
5849 MS_BIND | MS_REC, NULL)); in FIXTURE_SETUP()
6836 .flags = MS_BIND, in FIXTURE_VARIANT_ADD()
/linux/fs/
H A Dnamespace.c4148 if ((flags & (MS_REMOUNT | MS_BIND)) == (MS_REMOUNT | MS_BIND)) in path_mount()
4152 if (flags & MS_BIND) in path_mount()
/linux/tools/testing/selftests/namespaces/
H A Dns_active_ref_test.c887 ret = mount("/proc/self/ns/net", tmpfile, NULL, MS_BIND, NULL); in TEST()