Merge "servicemanager: kernel log perms" am: 586703a90c

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2120755

Change-Id: I64241a470ee02206e7513f0d9bd9b5f827ee1ab6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Steven Moreland 2022-10-18 20:27:45 +00:00 committed by Automerger Merge Worker
commit 2b39859d1a
2 changed files with 5 additions and 3 deletions

View file

@ -31,10 +31,9 @@ allow servicemanager dumpstate:fifo_file write;
# Check SELinux permissions.
selinux_check_access(servicemanager)
recovery_only(`
# In recovery, log to kmsg.
allow servicemanager kmsg_device:chr_file rw_file_perms;
allow servicemanager kmsg_device:chr_file rw_file_perms;
recovery_only(`
# Read VINTF files.
r_dir_file(servicemanager, rootfs)
')

View file

@ -20,3 +20,6 @@ set_prop(vndservicemanager, ctl_interface_start_prop)
# Check SELinux permissions.
selinux_check_access(vndservicemanager)
# Log to kmesg
allow vndservicemanager kmsg_device:chr_file rw_file_perms;