Fix off-mode (charger) sepolicy for the health interface
Bug: 223537397 Test: Ensure that there are no selinux errors for charger_vendor in off-mode charging Change-Id: I9074079a7ba67813da6b6ad7b110d964b9b7db6d
This commit is contained in:
parent
5ce2f99f38
commit
73b95396fd
1 changed files with 10 additions and 0 deletions
10
whitechapel_pro/charger_vendor.te
Normal file
10
whitechapel_pro/charger_vendor.te
Normal file
|
@ -0,0 +1,10 @@
|
|||
allow charger_vendor mnt_vendor_file:dir search;
|
||||
allow charger_vendor sysfs_batteryinfo:file w_file_perms;
|
||||
allow charger_vendor persist_file:dir search;
|
||||
allow charger_vendor persist_battery_file:dir search;
|
||||
allow charger_vendor persist_battery_file:file rw_file_perms;
|
||||
allow charger_vendor sysfs_scsi_devices_0000:file r_file_perms;
|
||||
allow charger_vendor sysfs_thermal:file w_file_perms;
|
||||
allow charger_vendor sysfs_thermal:lnk_file read;
|
||||
allow charger_vendor thermal_link_device:dir search;
|
||||
set_prop(charger_vendor, vendor_battery_defender_prop)
|
Loading…
Add table
Add a link
Reference in a new issue