| /linux/security/tomoyo/ |
| H A D | mount.c | 212 } else if (flags & MS_SHARED) { in tomoyo_mount_permission() 216 flags &= ~MS_SHARED; in tomoyo_mount_permission() 218 if (flags & (MS_SHARED | MS_SLAVE | MS_UNBINDABLE)) in tomoyo_mount_permission() 223 if (flags & (MS_SHARED | MS_PRIVATE | MS_UNBINDABLE)) in tomoyo_mount_permission() 228 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE)) in tomoyo_mount_permission()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 28 #ifndef MS_SHARED 29 #define MS_SHARED (1 << 20) macro 234 if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) in move_mount_set_group_supported() 335 ret = mount(NULL, SET_GROUP_A, NULL, MS_SHARED, 0); in get_nestedns_mount_cb() 408 ASSERT_EQ(mount(NULL, SET_GROUP_A, NULL, MS_SHARED, 0), 0); in TEST_F()
|
| /linux/tools/testing/selftests/filesystems/umount_propagation/ |
| H A D | shrink_submounts_test.c | 141 ASSERT_EQ(mount(NULL, p, NULL, MS_SHARED, NULL), 0); in TEST_F() 144 ASSERT_EQ(mount(NULL, p1, NULL, MS_SHARED, NULL), 0); in TEST_F() 195 ASSERT_EQ(mount(NULL, t, NULL, MS_SHARED, NULL), 0); in TEST_F()
|
| H A D | umount_propagation_test.c | 97 ASSERT_EQ(mount(NULL, self->base, NULL, MS_SHARED, NULL), 0); in FIXTURE_SETUP()
|
| H A D | locked_mount_test.c | 231 ASSERT_EQ(mount(NULL, p, NULL, MS_SHARED, NULL), 0); in TEST_F() 427 ASSERT_EQ(mount(NULL, p, NULL, MS_SHARED, NULL), 0); in TEST_F()
|
| /linux/tools/include/uapi/linux/ |
| H A D | mount.h | 34 #define MS_SHARED (1<<20) /* change to shared */ macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 34 #define MS_SHARED (1<<20) /* change to shared */ macro
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 34 #define MS_SHARED (1<<20) /* change to shared */ macro
|
| /linux/tools/testing/selftests/filesystems/mount_cycle/ |
| H A D | overmount_reparent_test.c | 140 ASSERT_EQ(mount(NULL, a, NULL, MS_SHARED, NULL), 0); in TEST_F()
|
| H A D | unmounted_tree_test.c | 451 .propagation = MS_SHARED, in TEST_F() 475 attr.propagation = MS_SHARED; in TEST_F()
|
| H A D | overmount_ns_file_test.c | 141 ASSERT_EQ(mount(NULL, a, NULL, MS_SHARED, NULL), 0); in TEST_F()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 82 #ifndef MS_SHARED 83 #define MS_SHARED (1 << 20) macro 337 .propagation = MS_SHARED, in mount_setattr_thread() 602 attr.propagation = MS_SHARED; in TEST_F() 666 .propagation = MS_SHARED, in TEST_F() 2091 ASSERT_EQ(mount(NULL, "/mnt", NULL, MS_REC | MS_SHARED, NULL), 0); in TEST_F()
|
| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 243 ret = mount("", "/", NULL, MS_SHARED, NULL); in setup_mount_tree() 381 ret = mount("", "/a", NULL, MS_SHARED, NULL); in TEST_F()
|
| H A D | mount-notify_test_ns.c | 270 ret = mount("", "/", NULL, MS_SHARED, NULL); in setup_mount_tree() 408 ret = mount("", "/a", NULL, MS_SHARED, NULL); in TEST_F()
|
| /linux/samples/vfs/ |
| H A D | mountinfo.c | 104 if (sm->mnt_propagation & MS_SHARED) in show_propagation()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 74 if (flags & MS_SHARED) in audit_mnt_flags() 409 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
|
| H A D | lsm.c | 727 else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | in apparmor_sb_mount()
|
| /linux/fs/ |
| H A D | pnode.c | 97 if (type == MS_SHARED) { in change_mnt_propagation()
|
| H A D | namespace.c | 2965 if (type & ~(MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in flags_to_propagation_type() 2997 if (type == MS_SHARED) { in do_change_type() 4332 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in path_mount() 4584 (MS_UNBINDABLE | MS_PRIVATE | MS_SLAVE | MS_SHARED) 5132 if (kattr->propagation == MS_SHARED) { in do_mount_setattr() 5469 propagation |= MS_SHARED; in mnt_to_propagation_flags()
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 164 ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL); in setup_mount_tree()
|