diff --git a/non_plat/file.te b/non_plat/file.te index c020e1a..29e229f 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -400,12 +400,15 @@ type proc_ppm, fs_type, proc_type; type proc_cpufreq, fs_type, proc_type; type proc_hps, fs_type, proc_type; type proc_cm_mgr, fs_type, proc_type; -type proc_ca_drv, fs_type, proc_type; type sysfs_ged, fs_type, sysfs_type; type sysfs_fbt_cpu, fs_type, sysfs_type; type sysfs_fbt_fteh, fs_type, sysfs_type; +# Date : 2019/09/17 +# Purpose: Allow powerhal to control cache audit +type sysfs_ca_drv, fs_type, sysfs_type; +type sysfs_pftch_qos, fs_type, sysfs_type; + # Date : WK19.38 # Purpose: Android Migration for video codec driver type sysfs_device_tree_model, fs_type, sysfs_type; - diff --git a/non_plat/genfs_contexts b/non_plat/genfs_contexts index 614b98c..5390657 100644 --- a/non_plat/genfs_contexts +++ b/non_plat/genfs_contexts @@ -230,18 +230,21 @@ genfscon sysfs /devices/platform/trusty u:object_r:mtee_trusty_file:s0 # Purpose: allow rild to access /proc/aed/reboot-reason genfscon proc /aed/reboot-reason u:object_r:proc_aed_reboot_reason:s0 - # 2019/09/05 # Purpose: Allow powerhal to control kernel resources genfscon proc /ppm u:object_r:proc_ppm:s0 genfscon proc /cpufreq u:object_r:proc_cpufreq:s0 genfscon proc /hps u:object_r:proc_hps:s0 genfscon proc /cm_mgr u:object_r:proc_cm_mgr:s0 -genfscon proc /ca_drv u:object_r:proc_ca_drv:s0 genfscon sysfs /module/ged u:object_r:sysfs_ged:s0 genfscon sysfs /module/fbt_cpu u:object_r:sysfs_fbt_cpu:s0 genfscon sysfs /module/fbt_fteh u:object_r:sysfs_fbt_fteh:s0 +# 2019/09/05 +# Purpose: Allow powerhal to control cache audit +genfscon sysfs /module/ca_drv u:object_r:sysfs_ca_drv:s0 +genfscon sysfs /module/pftch_qos u:object_r:sysfs_pftch_qos:s0 + # Date : WK19.38 # Purpose: Android Migration for video codec driver genfscon sysfs /firmware/devicetree/base/model u:object_r:sysfs_device_tree_model:s0 diff --git a/non_plat/mtk_hal_power.te b/non_plat/mtk_hal_power.te index fa52542..f719fd4 100644 --- a/non_plat/mtk_hal_power.te +++ b/non_plat/mtk_hal_power.te @@ -159,3 +159,11 @@ allow mtk_hal_power sysfs_fbt_cpu:dir r_dir_perms; allow mtk_hal_power sysfs_fbt_cpu:file rw_file_perms; allow mtk_hal_power sysfs_fbt_fteh:dir r_dir_perms; allow mtk_hal_power sysfs_fbt_fteh:file rw_file_perms; + +# Date : 2019/09/17 +# Operation: SQC +# Purpose : Add cache audit +allow mtk_hal_power sysfs_ca_drv:dir r_dir_perms; +allow mtk_hal_power sysfs_ca_drv:file rw_file_perms; +allow mtk_hal_power sysfs_pftch_qos:dir r_dir_perms; +allow mtk_hal_power sysfs_pftch_qos:file rw_file_perms;