| r_dir_file(healthd, sysfs_battery_supply) |
| r_dir_file(healthd, sysfs_usb_supply) |
| r_dir_file(healthd, sysfs_thermal); |
| r_dir_file(healthd, sysfs_graphics); |
| |
| #allow healthd read rtc device file |
| allow healthd rtc_device:chr_file r_file_perms; |
| |
| allow healthd { |
| sysfs_battery_supply |
| sysfs_usb_supply |
| sysfs_graphics |
| }:file rw_file_perms; |
| |
| allow healthd self:capability2 wake_alarm; |
| allow healthd sysfs_graphics:dir r_dir_perms; |
| allow healthd sysfs_graphics:file rw_file_perms; |
| |
| allow healthd kernel:system module_request; |
| allow healthd proc:file read; |
| allow healthd sysfs:file read; |
| allow healthd device:dir read; |
| allow healthd proc:file open; |
| |
| allow healthd sysfs:file { getattr open read }; |