From 4b4675b29b6282a4b89db35ea93c87d9bb633e72 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 29 Jun 2023 12:07:02 -0400 Subject: [PATCH] exynos9610: sepolicy: Allow Health HAL what it needs Change-Id: I46f54b481e70cf98307799acddeec6bf3e598976 --- sepolicy/vendor/genfs_contexts | 2 ++ sepolicy/vendor/hal_lineage_health_default.te | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 sepolicy/vendor/hal_lineage_health_default.te diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 53e459c..b61aadc 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -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 index 0000000..105da92 --- /dev/null +++ b/sepolicy/vendor/hal_lineage_health_default.te @@ -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; -- 2.20.1