| /linux-6.15/tools/testing/selftests/pid_namespace/ |
| H A D | pid_max.c | 42 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-6.15/security/apparmor/ |
| H A D | mount.c | 54 audit_log_format(ab, flags & MS_REC ? ", rbind" : ", bind"); in audit_mnt_flags() 62 audit_log_format(ab, flags & MS_REC ? ", runbindable" : in audit_mnt_flags() 65 audit_log_format(ab, flags & MS_REC ? ", rprivate" : in audit_mnt_flags() 68 audit_log_format(ab, flags & MS_REC ? ", rslave" : in audit_mnt_flags() 71 audit_log_format(ab, flags & MS_REC ? ", rshared" : in audit_mnt_flags() 437 flags &= MS_REC | MS_BIND; in aa_bind_mount() 472 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
|
| /linux-6.15/tools/testing/selftests/mount/ |
| H A D | unprivileged-remount-test.c | 38 #ifndef MS_REC 39 # define MS_REC 16384 macro 297 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount()
|
| /linux-6.15/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 55 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 172 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 239 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 384 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 458 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 535 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F() 604 ASSERT_EQ(sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in TEST_F()
|
| H A D | dev_in_maps.c | 148 if (sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL) == -1) { in main()
|
| /linux-6.15/tools/testing/selftests/exec/ |
| H A D | recursion-depth.c | 43 if (mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL) == -1) in main()
|
| /linux-6.15/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-6.15/samples/binderfs/ |
| H A D | binderfs_example.c | 30 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in main()
|
| /linux-6.15/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()
|
| /linux-6.15/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 34 #ifndef MS_REC 35 #define MS_REC 16384 macro 251 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns() 438 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP() 1031 ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 0); in FIXTURE_SETUP() 1063 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP() 1447 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in TEST_F() 2097 ASSERT_EQ(mount(NULL, "/mnt", NULL, MS_REC | MS_SHARED, NULL), 0); in TEST_F()
|
| /linux-6.15/tools/testing/selftests/firmware/ |
| H A D | fw_namespace.c | 101 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1) in test_fw_in_ns()
|
| /linux-6.15/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 26 #define MS_REC 16384 macro
|
| /linux-6.15/include/uapi/linux/ |
| H A D | mount.h | 26 #define MS_REC 16384 macro
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_bpffs.c | 43 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
|
| /linux-6.15/tools/testing/selftests/filesystems/ |
| H A D | devpts_pts.c | 296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
|
| H A D | file_stressor.c | 64 ASSERT_EQ(mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in FIXTURE_SETUP()
|
| /linux-6.15/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 150 ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in setup_namespace() 191 ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL); in setup_mount_tree()
|
| H A D | statmount_test_ns.c | 156 ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in setup_namespace()
|
| /linux-6.15/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 79 ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0); in FIXTURE_SETUP() 492 mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in TEST_F()
|
| /linux-6.15/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 118 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns()
|
| /linux-6.15/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-6.15/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-6.15/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 215 if (mount("none", "/", NULL, MS_REC | MS_PRIVATE, NULL)) { in setup_cgroup_environment()
|
| /linux-6.15/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 49 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in change_mountns()
|