From b86bdaaa5aef70c51d28bc882b9867c3e88dd57d Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Tue, 13 Jun 2023 17:52:10 +0200 Subject: [PATCH] common: Add policy for lineage health HAL Change-Id: I70a36a48e951bcabe7b36ee72d8481ff1ba563cf --- common/vendor/genfs_contexts | 1 + common/vendor/hal_lineage_health_default.te | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 common/vendor/hal_lineage_health_default.te diff --git a/common/vendor/genfs_contexts b/common/vendor/genfs_contexts index b051a52..c7d4ae5 100644 --- a/common/vendor/genfs_contexts +++ b/common/vendor/genfs_contexts @@ -24,6 +24,7 @@ genfscon sysfs /class/timed_output/vibrator/multi_freq u:obje genfscon sysfs /devices/platform/argos u:object_r:sysfs_argos:s0 genfscon sysfs /devices/platform/battery/power_supply u:object_r:sysfs_battery:s0 +genfscon sysfs /devices/platform/battery/power_supply/battery/batt_slate_mode u:object_r:sysfs_battery_writable:s0 genfscon sysfs /devices/platform/battery/power_supply/battery/lcd u:object_r:sysfs_battery_writable:s0 genfscon sysfs /devices/platform/panel@0/backlight/panel/brightness u:object_r:sysfs_backlight_writable:s0 genfscon sysfs /devices/platform/panel@0/backlight/panel/max_brightness u:object_r:sysfs_backlight_writable:s0 diff --git a/common/vendor/hal_lineage_health_default.te b/common/vendor/hal_lineage_health_default.te new file mode 100644 index 0000000..c26d365 --- /dev/null +++ b/common/vendor/hal_lineage_health_default.te @@ -0,0 +1,2 @@ +allow hal_lineage_health_default sysfs_battery:dir r_dir_perms; +allow hal_lineage_health_default sysfs_battery_writable:file rw_file_perms; -- 2.20.1