diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 6b33aa79a2c2..5029f5a9f53d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -816,7 +816,9 @@ static int selinux_set_mnt_opts(struct super_block *sb, !strcmp(sb->s_type->name, "sysfs") || !strcmp(sb->s_type->name, "pstore") || !strcmp(sb->s_type->name, "bpf") || - !strcmp(sb->s_type->name, "binder")) + !strcmp(sb->s_type->name, "binder") || + !strcmp(sb->s_type->name, "cgroup") || + !strcmp(sb->s_type->name, "cgroup2")) sbsec->flags |= SE_SBGENFS; if (!sbsec->behavior) {