Merge "restorecon /dev/console at the second stage boot" am: 99c892e579

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2035768

Change-Id: If3f1a4883c0b329d225959811665ec616e39f5dd
This commit is contained in:
Treehugger Robot 2022-03-23 04:45:55 +00:00 committed by Automerger Merge Worker
commit fa04ae51a0

View file

@ -762,6 +762,7 @@ void SelinuxAvcLog(char* buf, size_t buf_len) {
void SelinuxRestoreContext() {
LOG(INFO) << "Running restorecon...";
selinux_android_restorecon("/dev", 0);
selinux_android_restorecon("/dev/console", 0);
selinux_android_restorecon("/dev/kmsg", 0);
if constexpr (WORLD_WRITABLE_KMSG) {
selinux_android_restorecon("/dev/kmsg_debug", 0);