UPSTREAM: selinux: enable genfscon labeling for tracefs
authorJeff Vander Stoep <jeffv@google.com>
Tue, 20 Jun 2017 16:35:33 +0000 (09:35 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Jul 2017 10:59:53 +0000 (16:29 +0530)
commitafd012a6a05f426411186b5ed23c99bb0d83cbe7
tree0a0628463cb5e73d4854caf7c93773db89f3f51a
parentaf0f86d1d79c04489e2198b7d29ea92e86ffd0a0
UPSTREAM: selinux: enable genfscon labeling for tracefs

In kernel version 4.1, tracefs was separated from debugfs into its
own filesystem. Prior to this split, files in
/sys/kernel/debug/tracing could be labeled during filesystem
creation using genfscon or later from userspace using setxattr. This
change re-enables support for genfscon labeling.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit 6a3911837da0a90ed599fd0a9836472f5e7ddf1b)
Change-Id: I98ad8c829302346705c1abcdc8f019f479fdefb6
Bug: 62413700
security/selinux/hooks.c