Revert "SELinux: Enable setting security contexts on rootfs inodes."
[firefly-linux-kernel-4.4.55.git] / security / selinux / hooks.c
index d4d12949de0939aa561b4ad7abd88c7ca8635b53..9b0586d0f3c41d72aea3230cba87f63e2df59ad2 100644 (file)
@@ -464,13 +464,6 @@ static int sb_finish_set_opts(struct super_block *sb)
        if (selinux_is_sblabel_mnt(sb))
                sbsec->flags |= SBLABEL_MNT;
 
-       /*
-        * 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);