Snap for 9330281 from 27a1f9914e18d56f6437d56771bf415eb472ebbe to udc-release

Change-Id: I98652626a795f9c3f1a23bbe611f6fd894e2a163
This commit is contained in:
Android Build Coastguard Worker 2022-11-25 02:02:26 +00:00
commit 530332934d
5 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,3 @@
# GPS
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0
genfscon sysfs /devices/virtual/pps/pps0/assert_elapsed u:object_r:sysfs_gps_assert:s0

View File

@ -44,3 +44,5 @@ echo "TMU_SUB rise thresholds:"
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
echo "TMU_SUB fall thresholds:"
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres
echo "Temperature Residency Metrics:"
cat /sys/kernel/metrics/temp_residency/temp_residency_all/stats

View File

@ -0,0 +1,2 @@
#vendor-metrics
type sysfs_vendor_metrics, fs_type, sysfs_type;

View File

@ -4,3 +4,7 @@ allow dump_thermal sysfs_thermal:dir r_dir_perms;
allow dump_thermal sysfs_thermal:file r_file_perms;
allow dump_thermal sysfs_thermal:lnk_file r_file_perms;
allow dump_thermal vendor_toolbox_exec:file execute_no_trans;
#vendor-metrics
r_dir_file(dump_thermal, sysfs_vendor_metrics)
allow dump_thermal sysfs_vendor_metrics:lnk_file r_file_perms;

View File

@ -1,3 +1,5 @@
# thermal sysfs files
genfscon sysfs /module/gs_thermal/parameters 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