init: explicitly label all selinux files in rootfs am: f5b99d4fe2
am: a02393d472
Change-Id: I188b5c4c2d90cb24e37c56be42589bccf69cb8f5
diff --git a/init/init.cpp b/init/init.cpp
index 6f3b3a6..a1d9f1b 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -886,8 +886,18 @@
restorecon("/dev/random");
restorecon("/dev/urandom");
restorecon("/dev/__properties__");
+
+ restorecon("/file_contexts.bin");
+ restorecon("/plat_file_contexts");
+ restorecon("/nonplat_file_contexts");
restorecon("/plat_property_contexts");
restorecon("/nonplat_property_contexts");
+ restorecon("/plat_seapp_contexts");
+ restorecon("/nonplat_seapp_contexts");
+ restorecon("/plat_service_contexts");
+ restorecon("/nonplat_service_contexts");
+ restorecon("/sepolicy");
+
restorecon("/sys", SELINUX_ANDROID_RESTORECON_RECURSE);
restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE);
restorecon("/dev/device-mapper");