Skip to content

Commit

Permalink
Revert "Enable setting security contexts on rootfs inodes."
Browse files Browse the repository at this point in the history
This reverts commit 9b3f2cb.
  • Loading branch information
sultanqasim committed Oct 26, 2015
1 parent f373480 commit 8587894
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8587894

Please sign in to comment.