Merge changes from topic "btaa"
* changes:
Allow SystemSuspend to read from sysfs_wakeup_reasons
Allow SystemSuspend to call Bluetooth via binder
diff --git a/private/system_suspend.te b/private/system_suspend.te
index 4cd3ec9..7f343f2 100644
--- a/private/system_suspend.te
+++ b/private/system_suspend.te
@@ -10,12 +10,16 @@
# 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;
+# To call BTAA registered callbacks
+allow system_suspend bluetooth:binder call;
+
neverallow {
domain
-atrace # tracing