sepolicy: qti: Add rules for wlchgmonitor

Change-Id: I0f85df93f89d4fb95239656490b2f8af6f2b6737
This commit is contained in:
AnierinB
2022-09-26 01:41:04 +00:00
committed by Łukasz Patron
parent 7b1294c8b5
commit dff14c8992
3 changed files with 14 additions and 0 deletions

View File

@@ -6,3 +6,6 @@ type vendor_reserve_partition, dev_type;
# Sensors # Sensors
type ssc_interactive_device, dev_type; type ssc_interactive_device, dev_type;
# Wlchgmonitor
type wlchg_device, dev_type;

View File

@@ -75,3 +75,7 @@
# Widevine # Widevine
/(odm|vendor/odm)/bin/hw/android\.hardware\.drm@1\.3-service\.widevine u:object_r:vendor_hal_drm_widevine_exec:s0 /(odm|vendor/odm)/bin/hw/android\.hardware\.drm@1\.3-service\.widevine u:object_r:vendor_hal_drm_widevine_exec:s0
# Wlchgmonitor
/(odm|vendor/odm)/bin/wlchgmonitor u:object_r:wlchgmonitor_exec:s0
/dev/wlchg u:object_r:wlchg_device:s0

7
sepolicy/qti/vendor/wlchgmonitor.te vendored Normal file
View File

@@ -0,0 +1,7 @@
type wlchgmonitor, domain;
type wlchgmonitor_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(wlchgmonitor)
allow wlchgmonitor kmsg_device:chr_file rw_file_perms;
allow wlchgmonitor wlchg_device:chr_file rw_file_perms;