diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 9a8f12f8d5b7..0a4b4b040e0a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -480,12 +480,13 @@ static int selinux_is_sblabel_mnt(struct super_block *sb) | |||
480 | sbsec->behavior == SECURITY_FS_USE_NATIVE || | 480 | sbsec->behavior == SECURITY_FS_USE_NATIVE || |
481 | /* Special handling. Genfs but also in-core setxattr handler */ | 481 | /* Special handling. Genfs but also in-core setxattr handler */ |
482 | !strcmp(sb->s_type->name, "sysfs") || | 482 | !strcmp(sb->s_type->name, "sysfs") || |
483 | !strcmp(sb->s_type->name, "cgroup") || | ||
484 | !strcmp(sb->s_type->name, "cgroup2") || | ||
485 | !strcmp(sb->s_type->name, "pstore") || | 483 | !strcmp(sb->s_type->name, "pstore") || |
486 | !strcmp(sb->s_type->name, "debugfs") || | 484 | !strcmp(sb->s_type->name, "debugfs") || |
487 | !strcmp(sb->s_type->name, "tracefs") || | 485 | !strcmp(sb->s_type->name, "tracefs") || |
488 | !strcmp(sb->s_type->name, "rootfs"); | 486 | !strcmp(sb->s_type->name, "rootfs") || |
487 | (selinux_policycap_cgroupseclabel && | ||
488 | (!strcmp(sb->s_type->name, "cgroup") || | ||
489 | !strcmp(sb->s_type->name, "cgroup2"))); | ||
489 | } | 490 | } |
490 | 491 | ||
491 | static int sb_finish_set_opts(struct super_block *sb) | 492 | static int sb_finish_set_opts(struct super_block *sb) |