init: explicitly label all selinux files in rootfs am: f5b99d4fe2
am: a02393d472
Change-Id: I188b5c4c2d90cb24e37c56be42589bccf69cb8f5
This commit is contained in:
commit
2962e1718e
1 changed files with 10 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue