From 3a6040eb7159a73500bd9c7e6c1597ad008b5c84 Mon Sep 17 00:00:00 2001 From: Kean Mariotti Date: Wed, 8 Jun 2022 07:57:53 +0000 Subject: [PATCH] Revert "Set the log callback earlier for showing system property set denials" This reverts commit 8c224faa24039853028c3d9c0e1eadc5ef7bd935. Reason for revert: 235312897 Change-Id: I80684c80bb6f97853449d429bbf948c07d4cb651 --- init/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index 388251397..a7325cad9 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -784,7 +784,6 @@ int SecondStageMain(int argc, char** argv) { UmountDebugRamdisk(); } - SelinuxSetupKernelLogging(); PropertyInit(); // Umount second stage resources after property service has read the .prop files. @@ -799,6 +798,7 @@ int SecondStageMain(int argc, char** argv) { MountExtraFilesystems(); // Now set up SELinux for second stage. + SelinuxSetupKernelLogging(); SelabelInitialize(); SelinuxRestoreContext();