diff options
author | Robin Hsu <robinhsu@google.com> | 2022-06-14 05:35:23 +0800 |
---|---|---|
committer | Robin Hsu <robinhsu@google.com> | 2022-07-21 06:57:54 +0000 |
commit | 97d10b082df4969a2da410b3e38abd8209096d5a (patch) | |
tree | 753fcaa6b2c8d37702875e4cc9fe64edb76ec32a | |
parent | 3735118a5d695d8ba9a32812eeacf9f6691d0171 (diff) | |
download | pixel-sepolicy-97d10b082df4969a2da410b3e38abd8209096d5a.tar.gz |
pixel_stats: add access to PSI information
Add access to PSI information, i.e. /proc/pressure/xyz,
where xyz=cpu, io, or memory.
Test: local test
Bug: 233841658
Merged-In: Ic433cd2ebfdd24694ed63bee118e30e286c11b41
(cherry picked from commit 69d59aa6e7b3e9897ffc811558708d322d4bed2a)
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: I0e45ec31bbf470504efdd0143bbecef31bce299e
-rw-r--r-- | pixelstats/pixelstats_vendor.te | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pixelstats/pixelstats_vendor.te b/pixelstats/pixelstats_vendor.te index ed506e9..75fd6fe 100644 --- a/pixelstats/pixelstats_vendor.te +++ b/pixelstats/pixelstats_vendor.te @@ -24,6 +24,7 @@ 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; |