Home
last modified time | relevance | path

Searched refs:MS_SHARED (Results 1 – 15 of 15) 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
218 if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) in move_mount_set_group_supported()
319 ret = mount(NULL, SET_GROUP_A, NULL, MS_SHARED, 0); in get_nestedns_mount_cb()
/linux/samples/vfs/
H A Dsamples-vfs.h245 #ifndef MS_SHARED
246 #define MS_SHARED (1<<20) /* change to shared */ macro
H A Dmountinfo.c104 if (sm->mnt_propagation & MS_SHARED) in show_propagation()
/linux/include/uapi/linux/
H A Dmount.h34 #define MS_SHARED (1<<20) /* change to shared */ macro
/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/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/security/apparmor/
H A Dmount.c70 if (flags & MS_SHARED) in audit_mnt_flags()
470 flags &= (MS_REC | MS_SILENT | MS_SHARED | MS_PRIVATE | MS_SLAVE | in aa_mount_change_type()
H A Dlsm.c721 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.c2852 if (type & ~(MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in flags_to_propagation_type()
2884 if (type == MS_SHARED) { in do_change_type()
4154 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) in path_mount()
4380 (MS_UNBINDABLE | MS_PRIVATE | MS_SLAVE | MS_SHARED)
4910 if (kattr->propagation == MS_SHARED) { in do_mount_setattr()
5246 propagation |= MS_SHARED; in mnt_to_propagation_flags()
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c200 ret = mount("", "/", NULL, MS_REC|MS_SHARED, NULL); in setup_mount_tree()