1type hal_imsrtp, domain; 2type hal_imsrtp_exec, exec_type, vendor_file_type, file_type; 3 4init_daemon_domain(hal_imsrtp) 5 6hwbinder_use(hal_imsrtp) 7net_domain(hal_imsrtp) 8 9add_hwservice(hal_imsrtp, hal_imsrtp_hwservice) 10binder_call(hal_imsrtp, radio) 11binder_call(hal_imsrtp, qtelephony) 12unix_socket_connect(hal_imsrtp, ims, ims) 13 14get_prop(hal_imsrtp, hwservicemanager_prop) 15get_prop(hal_imsrtp, vendor_qcom_ims_prop) 16 17allow hal_imsrtp ion_device:chr_file r_file_perms; 18allow hal_imsrtp self:qipcrtr_socket create_socket_perms_no_ioctl; 19allow hal_imsrtp sysfs_ssr:file r_file_perms; 20allow hal_imsrtp sysfs_timestamp_switch:file r_file_perms; 21 22r_dir_file(hal_imsrtp, sysfs_soc) 23r_dir_file(hal_imsrtp, sysfs_msm_subsys) 24 25userdebug_or_eng(` 26 r_dir_file(hal_imsrtp, sysfs_diag) 27 allow hal_imsrtp diag_device:chr_file rw_file_perms; 28') 29 30crash_dump_fallback(hal_imsrtp) 31