Merge "Reland "Set the log callback earlier for showing system property set denials""
This commit is contained in:
commit
4c80eb13aa
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue