From 3e6ba1f4e3e14492ef3bdf7d1c38f149c4960b3f Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Sun, 12 Mar 2023 22:31:38 +0000 Subject: [PATCH] zuma-sepolicy: pixelstats: enable pixelstats access to perf-metrics enable pixelstats access to sysfs path Bug: 246799997 Test: Verified the existence of atom and correctness of atom stats Change-Id: I874f7ff06b91b028cd6bbffd682429763c264d9f Signed-off-by: Ziyi Cui --- vendor/pixelstats_vendor.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/pixelstats_vendor.te b/vendor/pixelstats_vendor.te index a0b2ac6f..5ddfbfe8 100644 --- a/vendor/pixelstats_vendor.te +++ b/vendor/pixelstats_vendor.te @@ -8,6 +8,10 @@ allow pixelstats_vendor mitigation_vendor_data_file:dir search; allow pixelstats_vendor mitigation_vendor_data_file:file rw_file_perms; get_prop(pixelstats_vendor, vendor_brownout_reason_prop); +#vendor-metrics +r_dir_file(pixelstats_vendor, sysfs_vendor_metrics) +allow pixelstats_vendor sysfs_vendor_metrics:lnk_file r_file_perms; + # Wireless charge allow pixelstats_vendor sysfs_wlc:dir search; allow pixelstats_vendor sysfs_wlc:file rw_file_perms;