Commit 718c4303 authored by Al Viro's avatar Al Viro

mount_fs: suppress MAC on MS_SUBMOUNT as well as MS_KERNMOUNT

Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d2497e12
...@@ -1277,7 +1277,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data) ...@@ -1277,7 +1277,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data)
if (error) if (error)
goto out_sb; goto out_sb;
if (!(flags & MS_KERNMOUNT)) { if (!(flags & (MS_KERNMOUNT|MS_SUBMOUNT))) {
error = security_sb_kern_mount(sb); error = security_sb_kern_mount(sb);
if (error) if (error)
goto out_sb; goto out_sb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment