Merge "servicemanager: kernel log perms"

This commit is contained in:
Steven Moreland 2022-10-18 20:06:41 +00:00 committed by Gerrit Code Review
commit 586703a90c
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;