| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 247 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 D | mount-notify_test_ns.c | 274 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 D | unprivileged-remount-test.c | 231 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 D | devpts_pts.c | 238 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 D | mount.c | 209 } else if (flags & MS_BIND) { in tomoyo_mount_permission() 211 flags &= ~MS_BIND; in tomoyo_mount_permission()
|
| /linux/samples/seccomp/ |
| H A D | user-trap.c | 124 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 D | mount.h | 24 #define MS_BIND 4096 macro
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 24 #define MS_BIND 4096 macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 24 #define MS_BIND 4096 macro
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 178 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 D | move_mount_set_group_test.c | 215 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 D | proc-pidns.c | 78 ASSERT_SUCCESS(mount("/proc/self/ns/pid", "/tmp/dummy/pidns", NULL, MS_BIND, NULL)); in FIXTURE_SETUP()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 53 if (flags & MS_BIND) in audit_mnt_flags() 435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
|
| H A D | lsm.c | 718 else if (flags & MS_BIND) in apparmor_sb_mount()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 407 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 D | fs_test.c | 4595 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 D | namespace.c | 4148 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 D | ns_active_ref_test.c | 887 ret = mount("/proc/self/ns/net", tmpfile, NULL, MS_BIND, NULL); in TEST()
|