Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66daa5f5 authored by Amit Pundir's avatar Amit Pundir
Browse files

Revert "SELinux: Enable setting security contexts on rootfs inodes."



This reverts commit 78d36d21.

Drop this duplicate patch. This patch is already upstreamed in v4.4. Commits
5c73fceb (SELinux: Enable setting security contexts on rootfs inodes.),
12f348b9 (SELinux: rename SE_SBLABELSUPP to SBLABEL_MNT), and
b43e725d (SELinux: use a helper function to determine seclabel),
for reference.

Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 5a0725f4
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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);