init: explicitly label all selinux files in rootfs am: f5b99d4fe2

am: a02393d472

Change-Id: I188b5c4c2d90cb24e37c56be42589bccf69cb8f5
This commit is contained in:
Sandeep Patil 2017-03-29 21:58:51 +00:00 committed by android-build-merger
commit 2962e1718e

View file

@ -886,8 +886,18 @@ static void selinux_restore_context() {
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");