diff --git a/init/init.cpp b/init/init.cpp index ca1c9a1a1..46a4ce5e7 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -936,7 +936,6 @@ int SecondStageMain(int argc, char** argv) { UmountDebugRamdisk(); } - SelinuxSetupKernelLogging(); PropertyInit(); // Umount second stage resources after property service has read the .prop files. @@ -951,6 +950,7 @@ int SecondStageMain(int argc, char** argv) { MountExtraFilesystems(); // Now set up SELinux for second stage. + SelinuxSetupKernelLogging(); SelabelInitialize(); SelinuxRestoreContext();