init.rc: restorecon_recursive /sys/kernel/debug

If /sys/kernel/debug is present, make sure it has all the appropriate
SELinux labels.

Labeling of /sys/kernel/debug depends on kernel support
added in commit https://android-review.googlesource.com/122130

This patch depends on an external/sepolicy change with the
same Change-Id as this patch.

Change-Id: Id1d6a9ad6d0759d6de839458890e8cb24685db6d
This commit is contained in:
Nick Kralevich 2015-12-07 16:57:08 -08:00
parent 50413c7626
commit 715c4dc3f9
1 changed files with 3 additions and 0 deletions

View File

@ -244,6 +244,9 @@ on post-fs
# Mount default storage into root namespace
mount none /mnt/runtime/default /storage slave bind rec
# Make sure /sys/kernel/debug (if present) is labeled properly
restorecon_recursive /sys/kernel/debug
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0770 /cache