init: Remove the obsolete restorecon for /sbin files.
These files, including their building rules, have been removed in favor
of their dynamically linked versions; we no longer need to explicitly
restorecon the actual files either, for the same reason as in commit
05f96a2561
. When doing normal boot, these
files come from system.img, which have been labeled at build time; when
booting recovery, they don't need dedicated labels to be functional.
Test: Build and boot crosshatch.
Test: Factory reset under recovery on taimen (mke2fs).
Test: Factory reset under recovery on crosshatch (make_f2fs).
Change-Id: Icbcd24aad8be1e7f4ba7d379acd5855d256ae106
This commit is contained in:
parent
77d895b739
commit
a68d8c9ea3
1 changed files with 0 additions and 6 deletions
|
@ -434,12 +434,6 @@ void SelinuxRestoreContext() {
|
|||
|
||||
selinux_android_restorecon("/dev/block", SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||
selinux_android_restorecon("/dev/device-mapper", 0);
|
||||
|
||||
selinux_android_restorecon("/sbin/mke2fs_static", 0);
|
||||
selinux_android_restorecon("/sbin/e2fsdroid_static", 0);
|
||||
|
||||
selinux_android_restorecon("/sbin/mkfs.f2fs", 0);
|
||||
selinux_android_restorecon("/sbin/sload.f2fs", 0);
|
||||
}
|
||||
|
||||
int SelinuxKlogCallback(int type, const char* fmt, ...) {
|
||||
|
|
Loading…
Reference in a new issue