diff --git a/public/healthd.te b/public/healthd.te index 50952d5469b77b565f90df63ea22c1d876728107..87217d5d703314adafbaa49bbc4268a8eca261d6 100644 --- a/public/healthd.te +++ b/public/healthd.te @@ -7,6 +7,8 @@ allow healthd kmsg_device:chr_file rw_file_perms; # Read access to pseudo filesystems. allow healthd sysfs_type:dir search; +# Allow to read /sys/class/power_supply directory. +allow healthd sysfs:dir r_dir_perms; r_dir_file(healthd, rootfs) r_dir_file(healthd, cgroup)