exynos9610: sepolicy: Allow Health HAL what it needs
authorNolen Johnson <johnsonnolen@gmail.com>
Thu, 29 Jun 2023 16:07:02 +0000 (12:07 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 29 Jun 2023 23:38:00 +0000 (19:38 -0400)
Change-Id: I46f54b481e70cf98307799acddeec6bf3e598976

sepolicy/vendor/genfs_contexts
sepolicy/vendor/hal_lineage_health_default.te [new file with mode: 0644]

index 53e459cc2845575c533ac9a0ddcb8f486b21b8ff..b61aadc49075abb917b715227189ebad71b3b80d 100644 (file)
@@ -20,6 +20,8 @@ genfscon proc /sys/vm/swappiness
 #
 
 genfscon sysfs /class/power_supply/battery/charge_temp                                                                  u:object_r:sysfs_battery_writable:s0
+genfscon sysfs /class/power_supply/battery/charging_enabled                                                             u:object_r:sysfs_battery_writable:s0
+genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu00x-battery/power_supply/battery/charging_enabled        u:object_r:sysfs_battery_writable:s0
 genfscon sysfs /devices/platform/11500000.mali/dvfs_max_lock                                                            u:object_r:sysfs_mali_writable:s0
 genfscon sysfs /devices/platform/11500000.mali/dvfs_min_lock                                                            u:object_r:sysfs_mali_writable:s0
 genfscon sysfs /devices/platform/11a10000.speedy/i2c-6/6-0000/s2mpu09-rtc/rtc/rtc0/hctosys                              u:object_r:sysfs_rtc:s0
diff --git a/sepolicy/vendor/hal_lineage_health_default.te b/sepolicy/vendor/hal_lineage_health_default.te
new file mode 100644 (file)
index 0000000..105da92
--- /dev/null
@@ -0,0 +1,2 @@
+r_dir_file(hal_lineage_health_default, sysfs_battery)
+allow hal_lineage_health_default sysfs_battery_writable:file rw_file_perms;