[ DO NOT MERGE ] gs101-sepolicy: pixelstats: enable pixelstats access to temp-residency-metrics am: 86d7d36fcf

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/20527590

Change-Id: I8a812f509a63c4e5a7877195b78058b1a100eef1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ziyi Cui 2022-12-01 06:59:36 +00:00 committed by Automerger Merge Worker
commit bb69de3087
3 changed files with 9 additions and 0 deletions

View file

@ -213,6 +213,9 @@ type sysfs_trusty, sysfs_type, fs_type;
# BootControl # BootControl
type sysfs_bootctl, sysfs_type, fs_type; type sysfs_bootctl, sysfs_type, fs_type;
#vendor-metrics
type sysfs_vendor_metrics, fs_type, sysfs_type;
# Radio # Radio
type radio_vendor_data_file, file_type, data_file_type; type radio_vendor_data_file, file_type, data_file_type;
userdebug_or_eng(` userdebug_or_eng(`

View file

@ -546,6 +546,9 @@ genfscon sysfs /devices/platform/100b0000.G3D u:obje
genfscon sysfs /devices/platform/100b0000.ISP u:object_r:sysfs_thermal:s0 genfscon sysfs /devices/platform/100b0000.ISP u:object_r:sysfs_thermal:s0
genfscon sysfs /devices/platform/100b0000.TPU u:object_r:sysfs_thermal:s0 genfscon sysfs /devices/platform/100b0000.TPU u:object_r:sysfs_thermal:s0
#vendor-metrics
genfscon sysfs /kernel/metrics/temp_residency/temp_residency_all/stats u:object_r:sysfs_vendor_metrics:s0
# Trusty # Trusty
genfscon sysfs /module/trusty_virtio/parameters/use_high_wq u:object_r:sysfs_trusty:s0 genfscon sysfs /module/trusty_virtio/parameters/use_high_wq u:object_r:sysfs_trusty:s0
genfscon sysfs /module/trusty_core/parameters/use_high_wq u:object_r:sysfs_trusty:s0 genfscon sysfs /module/trusty_core/parameters/use_high_wq u:object_r:sysfs_trusty:s0

View file

@ -23,6 +23,9 @@ 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)
# 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;