summaryrefslogtreecommitdiffstats
path: root/common/healthd.te
blob: fe3b461378c7718f79ecbe91f1f6addf5c0eca36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
r_dir_file(healthd, sysfs_battery_supply)
r_dir_file(healthd, sysfs_usb_supply)
r_dir_file(healthd, sysfs_thermal);
r_dir_file(healthd, persist_file);
r_dir_file(healthd, sysfs_graphics);

#allow healthd read rtc device file
allow healthd rtc_device:chr_file r_file_perms;
allow healthd persist_bms_file:dir rw_dir_perms;
allow healthd persist_bms_file:file create_file_perms;

allow healthd {
    sysfs_battery_supply
    sysfs_usb_supply
    sysfs_graphics
}:file rw_file_perms;

allow healthd self:capability2 wake_alarm;