1get_prop(radio, ims_prop) 2typeattribute radio system_writes_vendor_properties_violators; 3 4allow radio qmuxd_socket:dir search; 5allow radio qmuxd_socket:sock_file write; 6 7allow radio vendor_file:lnk_file r_file_perms; 8allow radio vendor_framework_file:file r_file_perms; 9allow radio vendor_framework_file:dir search; 10 11hwbinder_use(radio) 12allow radio vnd_ims_radio_hwservice:hwservice_manager find; 13allow radio vnd_qcrilhook_hwservice:hwservice_manager find; 14allow radio hal_imsrtp_hwservice:hwservice_manager find; 15 16allow radio { 17 mediaextractor_service 18}:service_manager find; 19 20r_dir_file(radio, sysfs_msm_subsys) 21 22# IMS needs permission to use avtimer 23allow radio avtimer_device:chr_file r_file_perms; 24 25binder_call(radio, hal_imsrtp) 26 27userdebug_or_eng(` 28 allow radio diag_device:chr_file rw_file_perms; 29 r_dir_file(radio, sysfs_diag) 30 allow radio sysfs_timestamp_switch:file r_file_perms; 31') 32dontaudit radio diag_device:chr_file rw_file_perms; 33dontaudit radio sysfs_diag:dir search; 34 35# read /proc/cmdline 36allow radio proc_cmdline:file r_file_perms; 37 38get_prop(radio, vendor_radio_prop) 39