diff --git a/init/init.cpp b/init/init.cpp index 42621915e..f964c605d 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -952,6 +952,8 @@ int SecondStageMain(int argc, char** argv) { InitKernelLogging(argv); LOG(INFO) << "init second stage started!"; + SelinuxSetupKernelLogging(); + // Update $PATH in the case the second stage init is newer than first stage init, where it is // first set. if (setenv("PATH", _PATH_DEFPATH, 1) != 0) { @@ -1012,7 +1014,6 @@ int SecondStageMain(int argc, char** argv) { MountExtraFilesystems(); // Now set up SELinux for second stage. - SelinuxSetupKernelLogging(); SelabelInitialize(); SelinuxRestoreContext();