From 84e818d35b6347786ecd1b9b432a993a25fe7228 Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Mon, 20 Feb 2017 16:03:21 -0800 Subject: selinux: enable genfs labeling on tracefs Test: Marlin kernel builds and boots. Tracefs labels specified in genfscon are correctly applied. Bug: 35248779 Change-Id: Ia59e572e774a48bec6e9da0c365f29d9987907ce Signed-off-by: Jeff Vander Stoep --- security/selinux/hooks.c | 1 + 1 file changed, 1 insertion(+) (limited to 'security') diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 1766adbd6..b704131af 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -696,6 +696,7 @@ static int selinux_set_mnt_opts(struct super_block *sb, sbsec->flags |= SE_SBPROC | SE_SBGENFS; if (!strcmp(sb->s_type->name, "debugfs") || + !strcmp(sb->s_type->name, "tracefs") || !strcmp(sb->s_type->name, "sysfs") || !strcmp(sb->s_type->name, "pstore")) sbsec->flags |= SE_SBGENFS; -- cgit v1.2.3