Avijit Kanti Das | 441bad4 | 2015-05-12 14:07:41 -0700 | [diff] [blame] | 1 | r_dir_file(healthd, sysfs_battery_supply) |
| 2 | r_dir_file(healthd, sysfs_usb_supply) |
Biswajit Paul | 34edf65 | 2015-01-13 15:05:29 -0800 | [diff] [blame] | 3 | r_dir_file(healthd, sysfs_thermal); |
Subbaraman Narayanamurthy | cc59573 | 2016-06-08 18:02:13 -0700 | [diff] [blame] | 4 | r_dir_file(healthd, persist_file); |
Subbaraman Narayanamurthy | 591e250 | 2017-10-16 19:01:43 -0700 | [diff] [blame] | 5 | r_dir_file(healthd, sysfs_graphics); |
Mao Jinlong | 470fc48 | 2015-12-03 19:37:30 +0800 | [diff] [blame] | 6 | |
| 7 | #allow healthd read rtc device file |
| 8 | allow healthd rtc_device:chr_file r_file_perms; |
Subbaraman Narayanamurthy | cc59573 | 2016-06-08 18:02:13 -0700 | [diff] [blame] | 9 | allow healthd persist_bms_file:dir rw_dir_perms; |
| 10 | allow healthd persist_bms_file:file create_file_perms; |
Ashay Jaiswal | 7c4c4c2 | 2017-07-06 17:21:55 +0530 | [diff] [blame] | 11 | |
| 12 | allow healthd { |
| 13 | sysfs_battery_supply |
| 14 | sysfs_usb_supply |
Subbaraman Narayanamurthy | 591e250 | 2017-10-16 19:01:43 -0700 | [diff] [blame] | 15 | sysfs_graphics |
Ashay Jaiswal | 7c4c4c2 | 2017-07-06 17:21:55 +0530 | [diff] [blame] | 16 | }:file rw_file_perms; |
Subbaraman Narayanamurthy | 591e250 | 2017-10-16 19:01:43 -0700 | [diff] [blame] | 17 | |
| 18 | allow healthd self:capability2 wake_alarm; |