Merge "[ALPS03946757] Thermal: Add permission" into alps-trunk-p0.basic

Change-Id: I1462cb40ec93cfc0293baf2d3bb9c095343880de
MTK-Commit-Id: 82833fac68b459f3d602416900a6c4aa3aacbe4d
This commit is contained in:
Josh Hsiao 2020-01-18 09:59:33 +08:00 committed by Gerrit Code Review
commit 7a3f9b9cc0
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Date : WK18.23
# Operation : P Migration
# Purpose : add grant permission for Thermal HAL mtktz and proc
allow hal_thermal_default proc_mtktz:dir search;
allow hal_thermal_default proc_mtktz:file {open read getattr};
allow hal_thermal_default proc_stat:file {open read getattr };

View File

@ -78,3 +78,11 @@ allow merged_hal_service sysfs_devices_system_cpu:file write;
allow merged_hal_service mtk_powerhal_data_file:dir {create_dir_perms rw_dir_perms};
allow merged_hal_service mtk_powerhal_data_file:file {create_file_perms rw_file_perms};
allow merged_hal_service mtk_powerhal_data_file:sock_file {create_file_perms rw_file_perms};
# Date : WK18.23
# Operation : P Migration
# Purpose : add grant permission for Thermal HAL mtktz and proc
allow merged_hal_service proc_mtktz:dir search;
allow merged_hal_service proc_mtktz:file {open read getattr};
allow merged_hal_service proc_stat:file {open read getattr };