diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4bc068b3773d..911b780fcf80 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -406,6 +406,13 @@ static int sb_finish_set_opts(struct super_block *sb) | |||
406 | if (strncmp(sb->s_type->name, "sysfs", sizeof("sysfs")) == 0) | 406 | if (strncmp(sb->s_type->name, "sysfs", sizeof("sysfs")) == 0) |
407 | sbsec->flags |= SE_SBLABELSUPP; | 407 | sbsec->flags |= SE_SBLABELSUPP; |
408 | 408 | ||
409 | /* | ||
410 | * Special handling for rootfs. Is genfs but supports | ||
411 | * setting SELinux context on in-core inodes. | ||
412 | */ | ||
413 | if (strncmp(sb->s_type->name, "rootfs", sizeof("rootfs")) == 0) | ||
414 | sbsec->flags |= SE_SBLABELSUPP; | ||
415 | |||
409 | /* Initialize the root inode. */ | 416 | /* Initialize the root inode. */ |
410 | rc = inode_doinit_with_dentry(root_inode, root); | 417 | rc = inode_doinit_with_dentry(root_inode, root); |
411 | 418 | ||