| /Linux-v6.6/security/tomoyo/ |
| 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-v6.6/tools/testing/selftests/move_mount_set_group/ |
| 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-v6.6/tools/testing/selftests/tmpfs/ |
| D | bug-link-o-tmpfile.c | 38 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
|
| /Linux-v6.6/tools/testing/selftests/exec/ |
| D | recursion-depth.c | 37 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
|
| /Linux-v6.6/tools/include/uapi/linux/ |
| D | mount.h | 32 #define MS_PRIVATE (1<<18) /* change to private */ macro
|
| /Linux-v6.6/include/uapi/linux/ |
| D | mount.h | 32 #define MS_PRIVATE (1<<18) /* change to private */ macro
|
| /Linux-v6.6/samples/binderfs/ |
| D | binderfs_example.c | 30 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in main()
|
| /Linux-v6.6/tools/testing/selftests/proc/ |
| D | proc-subset-pid.c | 48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc()
|
| D | proc-pid-vm.c | 64 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_tmp()
|
| /Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | connect_ping.c | 107 if (!ASSERT_OK(mount("none", "/sys", NULL, MS_PRIVATE, NULL), in test_connect_ping()
|
| D | test_bpffs.c | 42 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
|
| /Linux-v6.6/tools/testing/selftests/filesystems/ |
| D | devpts_pts.c | 296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
|
| /Linux-v6.6/tools/testing/selftests/pidfd/ |
| D | pidfd_fdinfo_test.c | 230 r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in child_fdinfo_nspid_test()
|
| D | pidfd_test.c | 187 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in test_pidfd_send_signal_recycled_pid_fail()
|
| /Linux-v6.6/security/apparmor/ |
| D | mount.c | 62 if (flags & MS_PRIVATE) in audit_mnt_flags() 457 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
|
| D | lsm.c | 591 else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | in apparmor_sb_mount()
|
| /Linux-v6.6/tools/testing/selftests/bpf/ |
| D | cgroup_helpers.c | 203 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) { in setup_cgroup_environment()
|
| /Linux-v6.6/tools/testing/selftests/capabilities/ |
| D | test_execve.c | 132 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL) != 0) in create_and_enter_ns()
|
| /Linux-v6.6/tools/testing/selftests/filesystems/binderfs/ |
| D | binderfs_test.c | 49 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in change_mountns()
|
| /Linux-v6.6/tools/testing/selftests/mount_setattr/ |
| D | mount_setattr_test.c | 230 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns() 1006 ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 0); in FIXTURE_SETUP()
|
| /Linux-v6.6/tools/testing/selftests/openat2/ |
| D | resolve_test.c | 54 E_mount("", "/tmp", "", MS_PRIVATE, ""); in setup_testdir()
|
| /Linux-v6.6/tools/bpf/bpftool/ |
| D | common.c | 155 while (mount("", target, "none", MS_PRIVATE | MS_REC, NULL)) { in mnt_fs()
|
| /Linux-v6.6/fs/ |
| D | namespace.c | 1676 change_mnt_propagation(p, MS_PRIVATE); in umount_tree() 2532 if (type & ~(MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in flags_to_propagation_type() 3657 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in path_mount() 3903 (MS_UNBINDABLE | MS_PRIVATE | MS_SLAVE | MS_SHARED)
|
| /Linux-v6.6/tools/testing/selftests/landlock/ |
| D | fs_test.c | 280 ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL)); in prepare_layout_opt()
|