From cbb62de10cfa34f1a6c3acc27031967d8a6596eb Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Mon, 22 Aug 2022 16:15:13 -0700 Subject: [PATCH] thermal: enable pixelstats access to thermal metrics Allow pixelstats daemon to access thermal metric nodes Bug: 228247740 Test: Build and boot on device. Check thermal stats Change-Id: Iada717b92782bc9c085928462b2e06d2db136cab Signed-off-by: Sayanna Chandula --- whitechapel_pro/pixelstats_vendor.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/whitechapel_pro/pixelstats_vendor.te b/whitechapel_pro/pixelstats_vendor.te index 068e7fb8..371bef41 100644 --- a/whitechapel_pro/pixelstats_vendor.te +++ b/whitechapel_pro/pixelstats_vendor.te @@ -22,3 +22,7 @@ get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop); # Pca charge allow pixelstats_vendor sysfs_pca:file rw_file_perms; + +#Thermal +r_dir_file(pixelstats_vendor, sysfs_thermal) +allow pixelstats_vendor sysfs_thermal:lnk_file r_file_perms;