Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c224faa authored by Alex Hong's avatar Alex Hong
Browse files

Set the log callback earlier for showing system property set denials

PropertyInit loads the build.prop files and set the system properties.
Set the SELinux log callback before that to show the avc denials for debugging.

Test: $ make init_system
      Push this module and ensure system property set denials are shown during boot
Bug: 185920634
Change-Id: Ifc228985a990f6938ad2a93790eb3607b2d12b5a
parent d684952f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -784,6 +784,7 @@ int SecondStageMain(int argc, char** argv) {
        UmountDebugRamdisk();
    }

    SelinuxSetupKernelLogging();
    PropertyInit();

    // Umount second stage resources after property service has read the .prop files.
@@ -798,7 +799,6 @@ int SecondStageMain(int argc, char** argv) {
    MountExtraFilesystems();

    // Now set up SELinux for second stage.
    SelinuxSetupKernelLogging();
    SelabelInitialize();
    SelinuxRestoreContext();