]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - security/selinux/hooks.c
selinux: add security in-core xattr support for tracefs
authorYongqin Liu <yongqin.liu@linaro.org>
Mon, 9 Jan 2017 15:07:30 +0000 (10:07 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 9 Jan 2017 15:07:30 +0000 (10:07 -0500)
commita2c7c6fbe5ab48f6e4ed22f4649c76d1efbfe643
tree2caef6503195a55ea72bff5bb5e70dcd7e42a3e4
parentda69a5306ab92e07224da54aafee8b1dccf024f6
selinux: add security in-core xattr support for tracefs

Since kernel 4.1 ftrace is supported as a new separate filesystem. It
gets automatically mounted by the kernel under the old path
/sys/kernel/debug/tracing. Because it lives now on a separate filesystem
SELinux needs to be updated to also support setting SELinux labels
on tracefs inodes.  This is required for compatibility in Android
when moving to Linux 4.1 or newer.

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Signed-off-by: William Roberts <william.c.roberts@intel.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c