gs101-sepolicy: pixelstats: enable pixelstats access to temp-residency-metrics

enable pixelstats access to sysfs path
Bug: 246799997
Test: Verified the existence of atom and correctness of atom stats
Change-Id: If329f2a65ed4cf347bd57150c637d38312f3dcb1
Signed-off-by: Ziyi Cui <ziyic@google.com>
This commit is contained in:
Ziyi Cui 2022-11-17 19:14:01 +00:00
parent 7aeb6fe8e7
commit 702b5768e6

View file

@ -23,6 +23,10 @@ allow pixelstats_vendor fwk_sensor_hwservice:hwservice_manager find;
# Batery history # Batery history
allow pixelstats_vendor battery_history_device:chr_file r_file_perms; allow pixelstats_vendor battery_history_device:chr_file r_file_perms;
#vendor-metrics
r_dir_file(pixelstats_vendor, sysfs_vendor_metrics)
allow pixelstats_vendor sysfs_vendor_metrics:lnk_file r_file_perms;
# BCL # BCL
allow pixelstats_vendor sysfs_bcl:dir search; allow pixelstats_vendor sysfs_bcl:dir search;
allow pixelstats_vendor sysfs_bcl:file r_file_perms; allow pixelstats_vendor sysfs_bcl:file r_file_perms;