Merge "Set the log callback earlier for showing system property set denials"
diff --git a/init/init.cpp b/init/init.cpp
index 4955bc5..7cd7054 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -905,6 +905,7 @@
         UmountDebugRamdisk();
     }
 
+    SelinuxSetupKernelLogging();
     PropertyInit();
 
     // Umount second stage resources after property service has read the .prop files.
@@ -919,7 +920,6 @@
     MountExtraFilesystems();
 
     // Now set up SELinux for second stage.
-    SelinuxSetupKernelLogging();
     SelabelInitialize();
     SelinuxRestoreContext();