Home
last modified time | relevance | path

Searched refs:MS_SHARED (Results 1 – 20 of 20) sorted by relevance

/linux/security/tomoyo/
H A Dmount.c212 } 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 Dmove_mount_set_group_test.c28 #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 Dshrink_submounts_test.c141 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 Dumount_propagation_test.c97 ASSERT_EQ(mount(NULL, self->base, NULL, MS_SHARED, NULL), 0); in FIXTURE_SETUP()
H A Dlocked_mount_test.c231 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 Dmount.h34 #define MS_SHARED (1<<20) /* change to shared */ macro
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h34 #define MS_SHARED (1<<20) /* change to shared */ macro
/linux/include/uapi/linux/
H A Dmount.h34 #define MS_SHARED (1<<20) /* change to shared */ macro
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dovermount_reparent_test.c140 ASSERT_EQ(mount(NULL, a, NULL, MS_SHARED, NULL), 0); in TEST_F()
H A Dunmounted_tree_test.c451 .propagation = MS_SHARED, in TEST_F()
475 attr.propagation = MS_SHARED; in TEST_F()
H A Dovermount_ns_file_test.c141 ASSERT_EQ(mount(NULL, a, NULL, MS_SHARED, NULL), 0); in TEST_F()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c82 #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 Dmount-notify_test.c243 ret = mount("", "/", NULL, MS_SHARED, NULL); in setup_mount_tree()
381 ret = mount("", "/a", NULL, MS_SHARED, NULL); in TEST_F()
H A Dmount-notify_test_ns.c270 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 Dmountinfo.c104 if (sm->mnt_propagation & MS_SHARED) in show_propagation()
/linux/security/apparmor/
H A Dmount.c74 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 Dlsm.c727 else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | in apparmor_sb_mount()
/linux/fs/
H A Dpnode.c97 if (type == MS_SHARED) { in change_mnt_propagation()
H A Dnamespace.c2965 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 Dstatmount_test.c164 ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL); in setup_mount_tree()