universal7885: sepolicy: Address health HAL denials

Change-Id: I7a5215175cdba42a8e9c422e138478733d172d26
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2021-06-17 22:01:02 +05:30 committed by roynatech2544
commit d687ffe488
4 changed files with 7 additions and 0 deletions

View file

@ -1 +1,2 @@
type sysfs_battery, sysfs_type, fs_type;
type sysfs_sec_tsp, fs_type, sysfs_type;

View file

@ -1 +1,3 @@
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-10/10-003d/s2mu004-charger/power_supply/s2mu004-charger u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/13830000.i2c/i2c-9/9-003b/power_supply/s2mu004-fuelgauge u:object_r:sysfs_battery:s0

View file

@ -0,0 +1,2 @@
allow hal_health sysfs_battery:file rw_file_perms;
allow hal_health sysfs_battery:dir r_dir_perms;

View file

@ -0,0 +1,2 @@
allow healthd sysfs_battery:file rw_file_perms;
allow healthd sysfs_battery:dir r_dir_perms;