[ DO NOT MERGE ] 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:
parent
33f38db80f
commit
86d7d36fcf
3 changed files with 9 additions and 0 deletions
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -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(`
|
||||||
|
|
3
whitechapel/vendor/google/genfs_contexts
vendored
3
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -551,6 +551,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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue