| /linux/security/tomoyo/ |
| H A D | mount.c | 211 if (flags & (MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission() 215 } else if (flags & MS_PRIVATE) { in tomoyo_mount_permission() 219 flags &= ~MS_PRIVATE; in tomoyo_mount_permission() 221 if (flags & (MS_SHARED | MS_PRIVATE | MS_UNBINDABLE)) in tomoyo_mount_permission() 226 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE)) in tomoyo_mount_permission()
|
| /linux/tools/testing/selftests/pid_namespace/ |
| H A D | pid_max.c | 43 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_cb() 89 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_inner() 164 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_outer() 233 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_inner() 290 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_outer()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 32 #ifndef MS_PRIVATE 33 #define MS_PRIVATE (1<<18) macro 118 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns() 202 if (mount(NULL, "/tmp", NULL, MS_PRIVATE, 0)) in move_mount_set_group_supported()
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_efault_test.c | 122 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in TEST() 328 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in TEST() 470 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in TEST()
|
| /linux/tools/testing/selftests/exec/ |
| H A D | recursion-depth.c | 43 if (mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL) == -1) in main()
|
| /linux/tools/testing/selftests/tmpfs/ |
| H A D | bug-link-o-tmpfile.c | 50 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
|
| /linux/samples/binderfs/ |
| H A D | binderfs_example.c | 30 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in main()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-subset-pid.c | 48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc()
|
| H A D | proc-pidns.c | 54 ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL)); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 56 ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0); in FIXTURE_SETUP() 322 ret = mount("", "/", NULL, MS_PRIVATE, NULL); in TEST_F() 469 mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in TEST_F()
|
| H A D | mount-notify_test_ns.c | 349 ret = mount("", "/", NULL, MS_PRIVATE, NULL); in TEST_F() 496 mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in TEST_F()
|
| /linux/tools/include/uapi/linux/ |
| H A D | mount.h | 32 #define MS_PRIVATE (1<<18) /* change to private */ macro
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 32 #define MS_PRIVATE (1<<18) /* change to private */ macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 32 #define MS_PRIVATE (1<<18) /* change to private */ macro
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | fclog.c | 42 ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL)); in FIXTURE_SETUP()
|
| H A D | devpts_pts.c | 296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
|
| /linux/tools/testing/selftests/filesystems/fuse/ |
| H A D | fusectl_test.c | 59 ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | connect_ping.c | 107 if (!ASSERT_OK(mount("none", "/sys", NULL, MS_PRIVATE, NULL), in test_connect_ping()
|
| H A D | test_bpffs.c | 43 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 150 ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in setup_namespace() 308 if (sm.mnt_propagation != MS_PRIVATE) { in test_statmount_mnt_basic()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_fdinfo_test.c | 231 r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in child_fdinfo_nspid_test()
|
| H A D | pidfd_test.c | 239 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in test_pidfd_send_signal_recycled_pid_fail()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 64 if (flags & MS_PRIVATE) in audit_mnt_flags() 470 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
|
| /linux/tools/testing/selftests/capabilities/ |
| H A D | test_execve.c | 123 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL) != 0) in create_and_enter_ns()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 216 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) { in setup_cgroup_environment()
|