Merge "Set the log callback earlier for showing system property set denials"

This commit is contained in:
Alex Hong 2022-06-08 05:37:22 +00:00 committed by Gerrit Code Review
commit af74368a36

View file

@ -905,6 +905,7 @@ int SecondStageMain(int argc, char** argv) {
UmountDebugRamdisk();
}
SelinuxSetupKernelLogging();
PropertyInit();
// Umount second stage resources after property service has read the .prop files.
@ -919,7 +920,6 @@ int SecondStageMain(int argc, char** argv) {
MountExtraFilesystems();
// Now set up SELinux for second stage.
SelinuxSetupKernelLogging();
SelabelInitialize();
SelinuxRestoreContext();