diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-20 11:16:27 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 19:51:23 +0300 |
commit | 718c43038f287e843c2f63d946977de90014cb11 (patch) | |
tree | 17b8ada3b08990c4493564221a6f082c97fbde42 /fs | |
parent | d2497e12e230c3f1be8ca6a0609a98c8c609fb80 (diff) | |
download | linux-718c43038f287e843c2f63d946977de90014cb11.tar.xz |
mount_fs: suppress MAC on MS_SUBMOUNT as well as MS_KERNMOUNT
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c index a5511c4ba69b..48e25eba8465 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1277,7 +1277,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data) if (error) goto out_sb; - if (!(flags & MS_KERNMOUNT)) { + if (!(flags & (MS_KERNMOUNT|MS_SUBMOUNT))) { error = security_sb_kern_mount(sb); if (error) goto out_sb; |