1#ims rtp service 2type hal_imsrtp, domain; 3type hal_imsrtp_exec, exec_type, vendor_file_type, file_type; 4 5# Started by init 6init_daemon_domain(hal_imsrtp) 7net_domain(hal_imsrtp) 8 9hwbinder_use(hal_imsrtp) 10get_prop(hal_imsrtp, hwservicemanager_prop) 11add_hwservice(hal_imsrtp, hal_imsrtp_hwservice) 12 13allow hal_imsrtp self:socket create_socket_perms; 14unix_socket_connect(hal_imsrtp, ims, ims) 15 16allow hal_imsrtp sysfs_timestamp_switch:file r_file_perms; 17 18# ioctlcmd=c302 19allowxperm hal_imsrtp self:socket ioctl msm_sock_ipc_ioctls; 20 21allow hal_imsrtp self:capability net_bind_service; 22 23allow hal_imsrtp sysfs_timestamp_switch:file r_file_perms; 24allow hal_imsrtp ion_device:chr_file r_file_perms; 25r_dir_file(hal_imsrtp, sysfs_msm_subsys) 26r_dir_file(hal_imsrtp, sysfs_diag) 27r_dir_file(hal_imsrtp, sysfs_soc) 28 29allow hal_imsrtp ion_device:chr_file r_file_perms; 30get_prop(hal_imsrtp, ims_prop) 31binder_call(hal_imsrtp, radio) 32 33userdebug_or_eng(` 34 allow hal_imsrtp diag_device:chr_file rw_file_perms; 35') 36dontaudit hal_imsrtp diag_device:chr_file rw_file_perms; 37