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:
commit
fa04ae51a0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue