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

This commit is contained in:
Kean Mariotti 2022-06-08 09:07:42 +00:00 committed by Gerrit Code Review
commit 526fbe2a37

View file

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