From 0df51526da4f5fb326c7ea2568a5bac96b94c28c Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Mon, 10 Apr 2023 13:51:41 -0700 Subject: [PATCH] thermal: enable pixelstats access to thermal metrics Allow pixelstats daemon to access thermal metric nodes Bug: 277625975 Test: Build and boot on device. Check DFS stats Change-Id: I50d71d12f4f9d3a1b83a606ba6a7159c46ebec14 Signed-off-by: Sayanna Chandula --- vendor/pixelstats_vendor.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/pixelstats_vendor.te b/vendor/pixelstats_vendor.te index 18a14726..2d0fb38e 100644 --- a/vendor/pixelstats_vendor.te +++ b/vendor/pixelstats_vendor.te @@ -21,3 +21,7 @@ allow pixelstats_vendor sysfs_pcie:dir search; allow pixelstats_vendor sysfs_pcie:file rw_file_perms; allow pixelstats_vendor sysfs_pixelstats:file r_file_perms; + +#Thermal +r_dir_file(pixelstats_vendor, sysfs_thermal) +allow pixelstats_vendor sysfs_thermal:lnk_file r_file_perms;