From 85878940fe74c79d051e53979cd5647927442936 Mon Sep 17 00:00:00 2001 From: Sultan Qasim Khan Date: Mon, 26 Oct 2015 00:10:24 -0400 Subject: [PATCH] Revert "Enable setting security contexts on rootfs inodes." This reverts commit 9b3f2cba732110643d863babeb9ab3f63c9bc8ad. --- security/selinux/hooks.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index b1b68f68d840..300e77b2d06d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -436,13 +436,6 @@ static int sb_finish_set_opts(struct super_block *sb) if (strncmp(sb->s_type->name, "sysfs", sizeof("sysfs")) == 0) sbsec->flags |= SE_SBLABELSUPP; - /* - * Special handling for rootfs. Is genfs but supports - * setting SELinux context on in-core inodes. - */ - if (strncmp(sb->s_type->name, "rootfs", sizeof("rootfs")) == 0) - sbsec->flags |= SE_SBLABELSUPP; - /* Initialize the root inode. */ rc = inode_doinit_with_dentry(root_inode, root);