Merge "Fix selinux warning on tracefs systems" am: 0ad600bdc6 am: 3915012a46 am: 67387a3510

am: a0d26e7cdd

Change-Id: I004165050ab96c3a9a7f1fbcdadf84c22b8256d9
This commit is contained in:
Paul Lawrence 2016-11-07 15:22:23 +00:00 committed by android-build-merger
commit ef2479247d
1 changed files with 4 additions and 0 deletions

View File

@ -308,6 +308,10 @@ on post-fs
# 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