Allow SystemSuspend to read from sysfs_wakeup_reasons
This allows the SystemSuspend to read wakeup reasons from sysfs_wakeup_reasons. Test: Local test verified SystemSuspend can access sysfs_wakeup_reasons Bug: 171021049 Change-Id: Ic5d723a989edbcbd55ff497a55ce8384ba1f226c
This commit is contained in:
parent
666992ecbb
commit
9cb662bdba
1 changed files with 2 additions and 1 deletions
|
@ -10,9 +10,10 @@ add_service(system_suspend, system_suspend_control_service)
|
|||
# Access to /sys/power/{ wakeup_count, state } suspend interface.
|
||||
allow system_suspend sysfs_power:file rw_file_perms;
|
||||
|
||||
# Access to wakeup and suspend stats.
|
||||
# Access to wakeup, suspend stats, and wakeup reasons.
|
||||
r_dir_file(system_suspend, sysfs_suspend_stats)
|
||||
r_dir_file(system_suspend, sysfs_wakeup)
|
||||
r_dir_file(system_suspend, sysfs_wakeup_reasons)
|
||||
# To resolve arbitrary sysfs paths from /sys/class/wakeup/* symlinks.
|
||||
allow system_suspend sysfs_type:dir search;
|
||||
|
||||
|
|
Loading…
Reference in a new issue