sepolicy: qti: Add rules for wlchgmonitor
Change-Id: I0f85df93f89d4fb95239656490b2f8af6f2b6737
This commit is contained in:
3
sepolicy/qti/vendor/device.te
vendored
3
sepolicy/qti/vendor/device.te
vendored
@@ -6,3 +6,6 @@ type vendor_reserve_partition, dev_type;
|
||||
|
||||
# Sensors
|
||||
type ssc_interactive_device, dev_type;
|
||||
|
||||
# Wlchgmonitor
|
||||
type wlchg_device, dev_type;
|
||||
|
||||
4
sepolicy/qti/vendor/file_contexts
vendored
4
sepolicy/qti/vendor/file_contexts
vendored
@@ -75,3 +75,7 @@
|
||||
|
||||
# Widevine
|
||||
/(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
7
sepolicy/qti/vendor/wlchgmonitor.te
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user