blob: 35735273422d0ea5cb8539dd21705a028ee6c447 [file] [log] [blame]
YumeMichi22d5f2b2020-02-04 00:18:56 +08001r_dir_file(charger, sysfs_battery_supply)
2r_dir_file(charger, sysfs_usb_supply)
3r_dir_file(charger, sysfs_thermal);
4r_dir_file(charger, persist_file);
5r_dir_file(charger, sysfs_graphics);
6
7#allow charger read rtc device file
8allow charger rtc_device:chr_file r_file_perms;
9allow charger persist_bms_file:dir rw_dir_perms;
10allow charger persist_bms_file:file create_file_perms;
11
12allow charger {
13 sysfs_battery_supply
14 sysfs_usb_supply
15 sysfs_graphics
16}:file rw_file_perms;
17
18allow charger self:capability2 wake_alarm;