blob: fe3b461378c7718f79ecbe91f1f6addf5c0eca36 [file] [log] [blame]
Avijit Kanti Das441bad42015-05-12 14:07:41 -07001r_dir_file(healthd, sysfs_battery_supply)
2r_dir_file(healthd, sysfs_usb_supply)
Biswajit Paul34edf652015-01-13 15:05:29 -08003r_dir_file(healthd, sysfs_thermal);
Subbaraman Narayanamurthycc595732016-06-08 18:02:13 -07004r_dir_file(healthd, persist_file);
Subbaraman Narayanamurthy591e2502017-10-16 19:01:43 -07005r_dir_file(healthd, sysfs_graphics);
Mao Jinlong470fc482015-12-03 19:37:30 +08006
7#allow healthd read rtc device file
8allow healthd rtc_device:chr_file r_file_perms;
Subbaraman Narayanamurthycc595732016-06-08 18:02:13 -07009allow healthd persist_bms_file:dir rw_dir_perms;
10allow healthd persist_bms_file:file create_file_perms;
Ashay Jaiswal7c4c4c22017-07-06 17:21:55 +053011
12allow healthd {
13 sysfs_battery_supply
14 sysfs_usb_supply
Subbaraman Narayanamurthy591e2502017-10-16 19:01:43 -070015 sysfs_graphics
Ashay Jaiswal7c4c4c22017-07-06 17:21:55 +053016}:file rw_file_perms;
Subbaraman Narayanamurthy591e2502017-10-16 19:01:43 -070017
18allow healthd self:capability2 wake_alarm;