Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic

Change-Id: Ia46712fc787f25fdb236af35b6a93b4d83b9ea50
MTK-Commit-Id: a768fea87cd4070ad92fdb58cea580660dc75e0b
This commit is contained in:
Josh Hsiao (蕭志遠) 2020-01-18 09:42:45 +08:00 committed by Gerrit Code Review
commit d3a136efe9
2 changed files with 12 additions and 5 deletions

View File

@ -18,14 +18,12 @@ allow thermal_manager proc_thermal:dir search;
allow thermal_manager proc_mtkcooler:file rw_file_perms;
allow thermal_manager proc_mtktz:file rw_file_perms;
allow thermal_manager proc_thermal:file rw_file_perms;
typeattribute thermal_manager data_between_core_and_vendor_violators;
allow thermal_manager system_data_file:dir { write add_name };
#allow thermal_manager self:capability { fowner chown fsetid dac_override };
# Date : WK15.30
# Operation : Migration
# Purpose : Use file_type_auto_trans to specify label to avoid violated(never allow)
#allow thermal_manager thermal_manager_data_file:file { create write read open setattr write lock};
allow thermal_manager thermal_manager_data_file:file { create write read open setattr write lock};
allow thermal_manager thermal_manager_data_file:dir { rw_dir_perms setattr };
allow thermal_manager mediaserver:fd use;
@ -50,3 +48,8 @@ allow thermal_manager sysfs:file write;
# Purpose : Allow thermal_manager to notify SPA.
allow thermal_manager mtk_thermal_config_prop:file { getattr open read };
allow thermal_manager mtk_thermal_config_prop:property_service set;
# Date : WK18.18
# Operation : P Migration
# Purpose : Allow thermal_manager to access vendor data file.
allow thermal_manager vendor_data_file:dir { write add_name };

View File

@ -11,7 +11,11 @@ type thermalloadalgod_exec , exec_type, file_type, vendor_file_type;
# MTK Policy Rule
# ==============================================
init_daemon_domain(thermalloadalgod)
file_type_auto_trans(thermal_manager, system_data_file, thermal_manager_data_file)
# Date : WK18.18
# Operation : P Migration
# Purpose : Allow thermal_manager to access vendor data file.
file_type_auto_trans(thermal_manager, vendor_data_file, thermal_manager_data_file)
# Data : WK14.43