From d53957c10d1922f04e1cc46d0b9deb6b622ff631 Mon Sep 17 00:00:00 2001 From: "jerry-sc.wu" Date: Sat, 18 Jan 2020 10:18:54 +0800 Subject: [PATCH] [ALPS04525779] Thermal: modify permission for power hal [Detail] Modify change thermal policy permission for power hal. Fix gaming change thermal policy via power hal fail issue. MTK-Commit-Id: 5e5b22a7b90aae3740ba34c1dfba5c975fb37ebf Change-Id: Ia0a9f5e1afaaad7a4c8e620c42fac6f38bcdd220 Signed-off-by: jerry-sc.wu CR-Id: ALPS04525779 Feature: Thermal Management --- non_plat/mtk_hal_power.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/non_plat/mtk_hal_power.te b/non_plat/mtk_hal_power.te index 5984d1f..52e61ce 100644 --- a/non_plat/mtk_hal_power.te +++ b/non_plat/mtk_hal_power.te @@ -90,6 +90,9 @@ allow mtk_hal_power debugfs_fb:file rw_file_perms; allow mtk_hal_power proc_thermal:file r_file_perms; allow mtk_hal_power thermal_manager_data_file:file create_file_perms; +allow mtk_hal_power thermal_manager_data_file:dir { rw_dir_perms setattr }; + + allow mtk_hal_power thermalloadalgod:unix_stream_socket connectto; allow mtk_hal_power proc_mtkcooler:dir r_dir_perms;