diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 2bd7b824b7f5..f803fdcde9cf 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -815,7 +815,9 @@ static int selinux_set_mnt_opts(struct super_block *sb, | |||
815 | if (!strcmp(sb->s_type->name, "debugfs") || | 815 | if (!strcmp(sb->s_type->name, "debugfs") || |
816 | !strcmp(sb->s_type->name, "tracefs") || | 816 | !strcmp(sb->s_type->name, "tracefs") || |
817 | !strcmp(sb->s_type->name, "sysfs") || | 817 | !strcmp(sb->s_type->name, "sysfs") || |
818 | !strcmp(sb->s_type->name, "pstore")) | 818 | !strcmp(sb->s_type->name, "pstore") || |
819 | !strcmp(sb->s_type->name, "cgroup") || | ||
820 | !strcmp(sb->s_type->name, "cgroup2")) | ||
819 | sbsec->flags |= SE_SBGENFS; | 821 | sbsec->flags |= SE_SBGENFS; |
820 | 822 | ||
821 | if (!sbsec->behavior) { | 823 | if (!sbsec->behavior) { |