1# ============================================================================== 2# Type Declaration 3# ============================================================================== 4type mtk_hal_imsa, domain, mtkimsapdomain; 5type mtk_hal_imsa_exec, exec_type, vendor_file_type, file_type; 6 7# ============================================== 8# MTK Policy Rule 9# ============================================== 10init_daemon_domain(mtk_hal_imsa) 11 12# hwbinder access 13hwbinder_use(mtk_hal_imsa) 14hal_server_domain(mtk_hal_imsa, hal_imsa) 15add_hwservice(hal_imsa_server, mtk_hal_imsa_hwservice) 16 17# call into system_server process (callbacks) 18binder_call(mtk_hal_imsa, system_server) 19 20# Date : 2017/05/18 21# Operation : VoLTE sanity 22# Purpose : Add permission for IMSA connect to IMSM 23allow mtk_hal_imsa rild_imsm_socket:sock_file write; 24 25# Date : 2017/06/08 26# Operation : IMSA sanity 27# Purpose : Add permission for IMSA connect to hwservicemanager 28allow mtk_hal_imsa hwservicemanager_prop:file { read open }; 29allow mtk_hal_imsa hwservicemanager_prop:file getattr; 30 31# Date : 2017/06/13 32# Operation : IMSA sanity 33# Purpose : Add permission for IMSA to access radio 34allow mtk_hal_imsa radio:binder call; 35allow mtk_hal_imsa debugfs_tracing:file { write open };