diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index a67459eb62d5..0f27db6d94a9 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2934,7 +2934,7 @@ static int selinux_sb_kern_mount(struct super_block *sb, int flags, void *data) | |||
2934 | return rc; | 2934 | return rc; |
2935 | 2935 | ||
2936 | /* Allow all mounts performed by the kernel */ | 2936 | /* Allow all mounts performed by the kernel */ |
2937 | if (flags & MS_KERNMOUNT) | 2937 | if (flags & (MS_KERNMOUNT | MS_SUBMOUNT)) |
2938 | return 0; | 2938 | return 0; |
2939 | 2939 | ||
2940 | ad.type = LSM_AUDIT_DATA_DENTRY; | 2940 | ad.type = LSM_AUDIT_DATA_DENTRY; |