Home
last modified time | relevance | path

Searched refs:MS_REC (Results 1 – 25 of 35) sorted by relevance

12

/linux/tools/testing/selftests/pid_namespace/
H A Dpid_max.c43 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/security/apparmor/
H A Dmount.c54 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()
435 flags &= MS_REC | MS_BIND; in aa_bind_mount()
470 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
/linux/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c38 #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/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c55 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 Ddev_in_maps.c148 if (sys_mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL) == -1) { in main()
/linux/tools/testing/selftests/namespaces/
H A Dlistns_efault_test.c122 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 Drecursion-depth.c43 if (mount(NULL, "/", NULL, MS_PRIVATE | MS_REC, NULL) == -1) in main()
/linux/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c50 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-pidns.c54 ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL)); in FIXTURE_SETUP()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c34 #ifndef MS_REC
35 #define MS_REC 16384 macro
220 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns()
407 ASSERT_EQ(mount("/tmp", "/mnt/A/AA", NULL, MS_BIND | MS_REC, NULL), 0); in FIXTURE_SETUP()
1000 ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0), 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()
2091 ASSERT_EQ(mount(NULL, "/mnt", NULL, MS_REC | MS_SHARED, NULL), 0); in TEST_F()
/linux/tools/include/uapi/linux/
H A Dmount.h26 #define MS_REC 16384 macro
/linux/tools/testing/selftests/firmware/
H A Dfw_namespace.c101 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1) in test_fw_in_ns()
/linux/include/uapi/linux/
H A Dmount.h26 #define MS_REC 16384 macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h26 #define MS_REC 16384 macro
/linux/tools/testing/selftests/filesystems/
H A Dfclog.c42 ASSERT_SUCCESS(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL)); in FIXTURE_SETUP()
H A Ddevpts_pts.c296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
H A Dfile_stressor.c64 ASSERT_EQ(mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL), 0); in FIXTURE_SETUP()
/linux/tools/testing/selftests/filesystems/fuse/
H A Dfusectl_test.c59 ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0); in FIXTURE_SETUP()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c43 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
/linux/tools/testing/selftests/filesystems/mount-notify/
H A Dmount-notify_test.c56 ASSERT_EQ(mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL), 0); in FIXTURE_SETUP()
469 mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in TEST_F()
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c150 ret = mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); in setup_namespace()
191 ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL); in setup_mount_tree()
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c118 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_fdinfo_test.c231 r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in child_fdinfo_nspid_test()

12