init: Make sure ImageManager status files are labelled.
adb remount and snapshot-based updates use ImageManager in first-stage init. This creates status files, which need to be labelled. Bug: 148834619 Test: manual test Change-Id: I72949fca2889f9e5612049844a78bf9355b48797
This commit is contained in:
parent
af40ce7d57
commit
c991f347b2
1 changed files with 3 additions and 1 deletions
|
@ -535,7 +535,9 @@ void SelinuxRestoreContext() {
|
|||
|
||||
selinux_android_restorecon("/linkerconfig", 0);
|
||||
|
||||
selinux_android_restorecon(gsi::kDsuAvbKeyDir, SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||
// adb remount, snapshot-based updates, and DSUs all create files during
|
||||
// first-stage init.
|
||||
selinux_android_restorecon("/metadata", SELINUX_ANDROID_RESTORECON_RECURSE);
|
||||
}
|
||||
|
||||
int SelinuxKlogCallback(int type, const char* fmt, ...) {
|
||||
|
|
Loading…
Reference in a new issue