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:
Michael Sun 2020-10-16 07:22:44 +00:00
parent 666992ecbb
commit 9cb662bdba

View File

@ -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;