aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/selinux/hooks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index ec39b9ab6569..daf59b4bc02b 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -726,7 +726,9 @@ static int selinux_set_mnt_opts(struct super_block *sb,
726 if (strcmp(sb->s_type->name, "proc") == 0) 726 if (strcmp(sb->s_type->name, "proc") == 0)
727 sbsec->flags |= SE_SBPROC | SE_SBGENFS; 727 sbsec->flags |= SE_SBPROC | SE_SBGENFS;
728 728
729 if (strcmp(sb->s_type->name, "debugfs") == 0) 729 if (!strcmp(sb->s_type->name, "debugfs") ||
730 !strcmp(sb->s_type->name, "sysfs") ||
731 !strcmp(sb->s_type->name, "pstore"))
730 sbsec->flags |= SE_SBGENFS; 732 sbsec->flags |= SE_SBGENFS;
731 733
732 if (!sbsec->behavior) { 734 if (!sbsec->behavior) {