Merge "Fix selinux warning on tracefs systems" am: 0ad600bdc6
am: 3915012a46
Change-Id: I07be8c612ab048807fb26cdef455060acb5c911a
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 0eb7f0b..ef3c8f9 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -307,6 +307,10 @@
# Make sure /sys/kernel/debug (if present) is labeled properly
restorecon_recursive /sys/kernel/debug
+ # On systems with tracefs, tracing is a separate mount, so make sure
+ # it too is correctly labeled
+ restorecon_recursive /sys/kernel/debug/tracing
+
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0770 /cache