universal7885: sepolicy: Allow health HAL to read otg and muic-manager node

* also remove write access

Change-Id: Ib89b2a0c4b8e31a12c1f5262d8fd172c1a947b47
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2021-06-23 17:21:36 +05:30 committed by roynatech2544
commit d3f562dea9
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,6 @@
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0
genfscon sysfs /devices/virtual/sec/switch u:object_r:sysfs_sec_switch: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/13840000.i2c/i2c-10/10-003d/s2mu004-charger/power_supply/otg u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-10/10-003d/s2mu004-muic/power_supply/muic-manager 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

@ -1,2 +1 @@
allow hal_health sysfs_battery:file rw_file_perms;
allow hal_health sysfs_battery:dir r_dir_perms;
r_dir_file(hal_health, sysfs_battery)

View file

@ -1,2 +1 @@
allow healthd sysfs_battery:file rw_file_perms;
allow healthd sysfs_battery:dir r_dir_perms;
r_dir_file(healthd, sysfs_battery)