From d6b8239e73a40a036daaf7f7f152f4c4ba02f709 Mon Sep 17 00:00:00 2001 From: Vishvam Mazumdar Date: Tue, 4 Jun 2024 18:22:19 +0000 Subject: [PATCH] Add SELinux policy to allow CPU Idle Histogram Stats in dumpstate. This change is to allow the CPU Idle Histogram Stats to be dumped in bugreports so that there is more insight into the idle behavior of devices in the field. Test: build/flash Test: adb bugreport Bug: 344908619 Flag: EXEMPT bugfix Change-Id: If19b9471cf91ddc6e16347e7a4ea18d3298783d5 Signed-off-by: Vishvam Mazumdar --- vendor/genfs_contexts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index 31066c0..dc09ffb 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -462,3 +462,7 @@ genfscon sysfs /devices/platform/ete7 u:object_r:sysfs_devices_cs_etm:s0 # Privacy LED genfscon sysfs /devices/platform/pwmleds/leds/green/brightness u:object_r:sysfs_leds:s0 genfscon sysfs /devices/platform/pwmleds/leds/green/max_brightness u:object_r:sysfs_leds:s0 + +# CPU +genfscon sysfs /kernel/metrics/cpuidle_histogram/cpuidle_histogram u:object_r:sysfs_cpu:s0 +genfscon sysfs /kernel/metrics/cpuidle_histogram/cpucluster_histogram u:object_r:sysfs_cpu:s0