diff options
-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 520f82ab3fbf..8dbc54cde59e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -702,7 +702,7 @@ static int selinux_set_mnt_opts(struct super_block *sb, | |||
702 | sbsec->proc = 1; | 702 | sbsec->proc = 1; |
703 | 703 | ||
704 | /* Determine the labeling behavior to use for this filesystem type. */ | 704 | /* Determine the labeling behavior to use for this filesystem type. */ |
705 | rc = security_fs_use(sb->s_type->name, &sbsec->behavior, &sbsec->sid); | 705 | rc = security_fs_use(sbsec->proc ? "proc" : sb->s_type->name, &sbsec->behavior, &sbsec->sid); |
706 | if (rc) { | 706 | if (rc) { |
707 | printk(KERN_WARNING "%s: security_fs_use(%s) returned %d\n", | 707 | printk(KERN_WARNING "%s: security_fs_use(%s) returned %d\n", |
708 | __func__, sb->s_type->name, rc); | 708 | __func__, sb->s_type->name, rc); |