Merge "system_suspend access to suspend, wakeup stats"
am: af9214d16a
Change-Id: Iff129f78ab6d7e0d68d9be13d73781f0700023c9
This commit is contained in:
commit
6ca1772af9
4 changed files with 13 additions and 1 deletions
|
@ -1742,7 +1742,10 @@
|
|||
(typeattributeset surfaceflinger_service_29_0 (surfaceflinger_service))
|
||||
(typeattributeset surfaceflinger_tmpfs_29_0 (surfaceflinger_tmpfs))
|
||||
(typeattributeset swap_block_device_29_0 (swap_block_device))
|
||||
(typeattributeset sysfs_29_0 (sysfs))
|
||||
(typeattributeset sysfs_29_0
|
||||
( sysfs
|
||||
sysfs_suspend_stats
|
||||
sysfs_wakeup))
|
||||
(typeattributeset sysfs_android_usb_29_0 (sysfs_android_usb))
|
||||
(typeattributeset sysfs_batteryinfo_29_0 (sysfs_batteryinfo))
|
||||
(typeattributeset sysfs_bluetooth_writable_29_0 (sysfs_bluetooth_writable))
|
||||
|
|
|
@ -115,6 +115,7 @@ genfscon sysfs /class/rfkill/rfkill2/state u:object_r:sysfs_bluetooth_wri
|
|||
genfscon sysfs /class/rfkill/rfkill3/state u:object_r:sysfs_bluetooth_writable:s0
|
||||
genfscon sysfs /class/rtc u:object_r:sysfs_rtc:s0
|
||||
genfscon sysfs /class/switch u:object_r:sysfs_switch:s0
|
||||
genfscon sysfs /class/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/nfc-power/nfc_power u:object_r:sysfs_nfc_power_writable:s0
|
||||
genfscon sysfs /devices/virtual/android_usb u:object_r:sysfs_android_usb:s0
|
||||
genfscon sysfs /devices/virtual/block/ u:object_r:sysfs_devices_block:s0
|
||||
|
@ -127,11 +128,13 @@ genfscon sysfs /devices/virtual/block/zram1/uevent u:object_r:sysfs_zram_ueve
|
|||
genfscon sysfs /devices/virtual/misc/hw_random u:object_r:sysfs_hwrandom:s0
|
||||
genfscon sysfs /devices/virtual/net u:object_r:sysfs_net:s0
|
||||
genfscon sysfs /devices/virtual/switch u:object_r:sysfs_switch:s0
|
||||
genfscon sysfs /devices/virtual/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /firmware/devicetree/base/firmware/android u:object_r:sysfs_dt_firmware_android:s0
|
||||
genfscon sysfs /fs/ext4/features u:object_r:sysfs_fs_ext4_features:s0
|
||||
genfscon sysfs /fs/f2fs u:object_r:sysfs_fs_f2fs:s0
|
||||
genfscon sysfs /power/autosleep u:object_r:sysfs_power:s0
|
||||
genfscon sysfs /power/state u:object_r:sysfs_power:s0
|
||||
genfscon sysfs /power/suspend_stats u:object_r:sysfs_suspend_stats:s0
|
||||
genfscon sysfs /power/wakeup_count u:object_r:sysfs_power:s0
|
||||
genfscon sysfs /power/wake_lock u:object_r:sysfs_wake_lock:s0
|
||||
genfscon sysfs /power/wake_unlock u:object_r:sysfs_wake_lock:s0
|
||||
|
|
|
@ -10,6 +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.
|
||||
r_dir_file(system_suspend, sysfs_suspend_stats)
|
||||
r_dir_file(system_suspend, sysfs_wakeup)
|
||||
|
||||
neverallow {
|
||||
domain
|
||||
-atrace # tracing
|
||||
|
|
|
@ -93,9 +93,11 @@ type sysfs_wake_lock, fs_type, sysfs_type;
|
|||
type sysfs_net, fs_type, sysfs_type;
|
||||
type sysfs_power, fs_type, sysfs_type;
|
||||
type sysfs_rtc, fs_type, sysfs_type;
|
||||
type sysfs_suspend_stats, fs_type, sysfs_type;
|
||||
type sysfs_switch, fs_type, sysfs_type;
|
||||
type sysfs_transparent_hugepage, fs_type, sysfs_type;
|
||||
type sysfs_usb, fs_type, sysfs_type;
|
||||
type sysfs_wakeup, fs_type, sysfs_type;
|
||||
type sysfs_wakeup_reasons, fs_type, sysfs_type;
|
||||
type sysfs_fs_ext4_features, sysfs_type, fs_type;
|
||||
type sysfs_fs_f2fs, sysfs_type, fs_type;
|
||||
|
|
Loading…
Reference in a new issue