summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-04-28 13:53:36 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-15 23:45:11 -0700
commit7347d84f27d61f730c9b94e4ed53e3cdb792f7fc (patch)
tree2cd0a6f99f991f1255b616dfdeedc16a9d2a24b8 /security/selinux/hooks.c
parent2e45ea728118fa88ba245a0a755d0a3844d9f54e (diff)
quick selinux support for tracefs
Here is just the quick fix for tracefs with selinux. just add tracefs to the list of whitelisted filesystem types in selinux_is_sblabel_mnt(), but the right fix would be to generalize this logic as described in the last item on the todo list, https://bitbucket.org/seandroid/wiki/wiki/ToDo CRs-Fixed: 1054492 Change-Id: I2aa803ccffbcd2802a7287514da7648e6b364157 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> (cherry picked from commit 3a343a1540d4376d838c0a29bd5462d4e961e766) Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
-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 e17c4a7c62d5..33d1262704ec 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -422,6 +422,7 @@ static int selinux_is_sblabel_mnt(struct super_block *sb)
!strcmp(sb->s_type->name, "sysfs") ||
!strcmp(sb->s_type->name, "pstore") ||
!strcmp(sb->s_type->name, "debugfs") ||
+ !strcmp(sb->s_type->name, "tracefs") ||
!strcmp(sb->s_type->name, "rootfs");
}