aboutsummaryrefslogtreecommitdiff
path: root/security/selinux
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2017-02-20 16:03:21 -0800
committerMoyster <oysterized@gmail.com>2019-07-06 11:55:58 +0200
commit84e818d35b6347786ecd1b9b432a993a25fe7228 (patch)
tree0cbbc3321e09e9cbe0e690f218356c2628ddc85f /security/selinux
parent3019784a9e0a01544c030c9a25d164ce9f1c3f26 (diff)
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 <jeffv@google.com>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c1
1 files changed, 1 insertions, 0 deletions
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;