Home
last modified time | relevance | path

Searched refs:MS_PRIVATE (Results 1 – 22 of 22) sorted by relevance

/linux/security/tomoyo/
H A Dmount.c211 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 Dpid_max.c42 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_cb()
88 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_inner()
163 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_outer()
232 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_inner()
289 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_outer()
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c32 #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/samples/vfs/
H A Dsamples-vfs.h225 #ifndef MS_PRIVATE
226 #define MS_PRIVATE (1<<18) /* change to private */ macro
/linux/tools/testing/selftests/exec/
H A Drecursion-depth.c43 if (mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL) == -1) in main()
/linux/samples/binderfs/
H A Dbinderfs_example.c30 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in main()
/linux/tools/testing/selftests/proc/
H A Dproc-subset-pid.c48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc()
H A Dproc-pid-vm.c65 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_tmp()
/linux/tools/include/uapi/linux/
H A Dmount.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h32 #define MS_PRIVATE (1<<18) /* change to private */ macro
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dconnect_ping.c107 if (!ASSERT_OK(mount("none", "/sys", NULL, MS_PRIVATE, NULL), in test_connect_ping()
H A Dtest_bpffs.c43 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
H A Dtoken.c311 err = sys_mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in child()
/linux/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_fdinfo_test.c230 r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in child_fdinfo_nspid_test()
H A Dpidfd_test.c187 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in test_pidfd_send_signal_recycled_pid_fail()
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test_ns.c156 ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in setup_namespace()
/linux/security/apparmor/
H A Dmount.c64 if (flags & MS_PRIVATE) in audit_mnt_flags()
472 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
/linux/tools/testing/selftests/capabilities/
H A Dtest_execve.c123 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL) != 0) in create_and_enter_ns()
/linux/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c215 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) { in setup_cgroup_environment()
/linux/tools/testing/selftests/openat2/
H A Dresolve_test.c54 E_mount("", "/tmp", "", MS_PRIVATE, ""); in setup_testdir()
/linux/tools/bpf/bpftool/
H A Dcommon.c155 while (mount("", target, "none", MS_PRIVATE | MS_REC, NULL)) { in mnt_fs()