sm6375-common: sepolicy: Allow hal_health_default

Allow to read sysfs_usb, USB & Charger Supply, Battery info
This commit is contained in:
Andy | アンディ
2023-09-26 12:06:43 +08:00
committed by kamikaonashi
parent e9fb53daed
commit 9b7d5329de

View File

@@ -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)