From 9b7d5329de6f9e3d576027b6a75d5c3d0fda9fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20=7C=20=E3=82=A2=E3=83=B3=E3=83=87=E3=82=A3?= Date: Tue, 26 Sep 2023 12:06:43 +0800 Subject: [PATCH] sm6375-common: sepolicy: Allow hal_health_default Allow to read sysfs_usb, USB & Charger Supply, Battery info --- sepolicy/vendor/hal_health_default.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/vendor/hal_health_default.te b/sepolicy/vendor/hal_health_default.te index 2148b11..19ef0e1 100644 --- a/sepolicy/vendor/hal_health_default.te +++ b/sepolicy/vendor/hal_health_default.te @@ -1,5 +1,9 @@ allow hal_health_default sysfs_wakeup:dir r_dir_perms; allow hal_health_default sysfs_wakeup:file r_file_perms; allow hal_health_default sysfs:file { getattr open read }; +allow hal_health_default sysfs_usb:file { getattr open read }; +r_dir_file(hal_health_default, vendor_sysfs_usb_supply) r_dir_file(hal_health_default, vendor_sysfs_battery_supply) +r_dir_file(hal_health_default, vendor_sysfs_charger_supply) +r_dir_file(hal_health_default, sysfs_batteryinfo)