summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-23 23:16:07 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-23 23:16:07 +0000
commit3ff204186d8bae347cc219672fd7335299e6d12a (patch)
tree2346c12369b7a4ea5103b3a56f3ced66cd8136e6
parentf32422214a660f1ced90ea4430458fc542c89824 (diff)
parent022c0815f4fca33869bd7e279fcad2decfff416e (diff)
downloadpixel-sepolicy-sdk-release.tar.gz
Snap for 11754915 from 022c0815f4fca33869bd7e279fcad2decfff416e to sdk-releasesdk-release
Change-Id: I54563a963fcda74db845be19d4645443114ffee5
-rw-r--r--pixelstats/pixelstats_vendor.te29
1 files changed, 16 insertions, 13 deletions
diff --git a/pixelstats/pixelstats_vendor.te b/pixelstats/pixelstats_vendor.te
index d0850b1..5a90395 100644
--- a/pixelstats/pixelstats_vendor.te
+++ b/pixelstats/pixelstats_vendor.te
@@ -22,18 +22,21 @@ get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop)
allow pixelstats_vendor fwk_stats_service:service_manager find;
binder_call(pixelstats_vendor, stats_service_server)
-allow pixelstats_vendor sysfs_zram:dir search;
-allow pixelstats_vendor sysfs_zram:file r_file_perms;
+# Pixel MM Metrics: (Atoms: PixelMmMetricsPerHour, PixelMmMetricsPerDay,
+# CmaStatus, CmaStatusExt, ZramBdStat, ZramMmStat)
+allow pixelstats_vendor kernel:dir search;
+allow pixelstats_vendor kernel:file r_file_perms;
+allow pixelstats_vendor proc_meminfo:file r_file_perms;
+allow pixelstats_vendor proc_pressure_cpu:file r_file_perms;
+allow pixelstats_vendor proc_pressure_io:file r_file_perms;
+allow pixelstats_vendor proc_pressure_mem:file r_file_perms;
+allow pixelstats_vendor proc_stat:file r_file_perms;
+allow pixelstats_vendor proc_vmstat:file r_file_perms;
+allow pixelstats_vendor sysfs_dma_heap:dir search;
+allow pixelstats_vendor sysfs_dma_heap:file r_file_perms;
+allow pixelstats_vendor sysfs_ion:dir search;
+allow pixelstats_vendor sysfs_ion:file r_file_perms;
allow pixelstats_vendor sysfs_pixel_stat:dir r_dir_perms;
allow pixelstats_vendor sysfs_pixel_stat:file r_file_perms;
-
-userdebug_or_eng(`
- allow pixelstats_vendor { proc_pressure_cpu proc_pressure_io proc_pressure_mem }:file r_file_perms;
- allow pixelstats_vendor proc_vmstat:file r_file_perms;
- allow pixelstats_vendor sysfs_ion:dir search;
- allow pixelstats_vendor sysfs_ion:file r_file_perms;
- allow pixelstats_vendor sysfs_dma_heap:dir search;
- allow pixelstats_vendor sysfs_dma_heap:file r_file_perms;
- allow pixelstats_vendor kernel:dir search;
- allow pixelstats_vendor kernel:file r_file_perms;
-')
+allow pixelstats_vendor sysfs_zram:dir search;
+allow pixelstats_vendor sysfs_zram:file r_file_perms;