Add /sys/kernel/memory_state_time to sysfs_power.

This allows system_server to access it for determining battery stats
(see KernelMemoryBandwidthStats.java).

batterystats-wo: type=1400 audit(0.0:429): avc: denied { read } for name="show_stat" dev="sysfs" ino=48071 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 72643420
Bug: 73947096

Test: Policy still builds.

Merged-In: I2a31178f3fb2b5761050896579650a062ea026d2

(cherry picked from commit a60f2873a5)

Change-Id: I611b02d94c6d9cbe65de4cf0463c0522bf501601
This commit is contained in:
Alan Stokes
2018-03-06 09:27:56 +00:00
parent e97c886ed9
commit 7a7f93ca3f

View File

@@ -67,7 +67,6 @@ genfscon sysfs /bus/msm_subsys u:object
genfscon sysfs /module/subsystem_restart u:object_r:sysfs_msm_subsys_restart:s0
genfscon sysfs /kernel/boot_adsp/boot u:object_r:sysfs_msm_subsys:s0
genfscon sysfs /kernel/boot_slpi/boot u:object_r:sysfs_msm_subsys:s0
genfscon sysfs /kernel/memory_state_time u:object_r:sysfs_power:s0
genfscon sysfs /devices/soc/c1b7000.i2c/i2c-9/9-0008 u:object_r:sysfs_easel:s0
genfscon sysfs /class/typec u:object_r:sysfs_usb_c:s0
genfscon sysfs /class/typec/usbc0 u:object_r:sysfs_usb_c:s0