Merge "Explicitly call restorecon_recursive on /metadata/apex" into rvc-dev am: 6a8602a8c9

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/11955299

Change-Id: Id504019ed77bf7c65fc1ae2252a8911804c32630
This commit is contained in:
Nikita Ioffe 2020-06-22 21:54:16 +00:00 committed by Automerger Merge Worker
commit a8e962b5c9
1 changed files with 6 additions and 0 deletions

View File

@ -517,6 +517,12 @@ on post-fs
mkdir /metadata/apex 0700 root system
mkdir /metadata/apex/sessions 0700 root system
# On some devices we see a weird behaviour in which /metadata/apex doesn't
# have a correct label. To workaround this bug, explicitly call restorecon
# on /metadata/apex. For most of the boot sequences /metadata/apex will
# already have a correct selinux label, meaning that this call will be a
# no-op.
restorecon_recursive /metadata/apex
mkdir /metadata/staged-install 0770 root system
on late-fs