Merge "init: manually restorecon mke2fs tools on ramdisk" am: e2629c5682
am: 06c1500a14
Change-Id: I75048ef3ab79aa9404e59b17813ce5b1a6f5cdd7
This commit is contained in:
commit
2ce5eb91c0
1 changed files with 6 additions and 3 deletions
|
|
@ -864,9 +864,9 @@ static void selinux_initialize(bool in_kernel_domain) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The files and directories that were created before initial sepolicy load
|
// The files and directories that were created before initial sepolicy load or
|
||||||
// need to have their security context restored to the proper value.
|
// files on ramdisk need to have their security context restored to the proper
|
||||||
// This must happen before /dev is populated by ueventd.
|
// value. This must happen before /dev is populated by ueventd.
|
||||||
static void selinux_restore_context() {
|
static void selinux_restore_context() {
|
||||||
LOG(INFO) << "Running restorecon...";
|
LOG(INFO) << "Running restorecon...";
|
||||||
restorecon("/dev");
|
restorecon("/dev");
|
||||||
|
|
@ -883,6 +883,9 @@ static void selinux_restore_context() {
|
||||||
restorecon("/sys", SELINUX_ANDROID_RESTORECON_RECURSE);
|
restorecon("/sys", SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||||
restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE);
|
restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||||
restorecon("/dev/device-mapper");
|
restorecon("/dev/device-mapper");
|
||||||
|
|
||||||
|
restorecon("/sbin/mke2fs");
|
||||||
|
restorecon("/sbin/e2fsdroid");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the UDC controller for the ConfigFS USB Gadgets.
|
// Set the UDC controller for the ConfigFS USB Gadgets.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue