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; 25allow hal_imsrtp sysfs_data:file r_file_perms; 26r_dir_file(hal_imsrtp, sysfs_msm_subsys) 27r_dir_file(hal_imsrtp, sysfs_diag) 28r_dir_file(hal_imsrtp, sysfs_soc) 29 30allow hal_imsrtp ion_device:chr_file r_file_perms; 31get_prop(hal_imsrtp, ims_prop) 32binder_call(hal_imsrtp, radio) 33 34userdebug_or_eng(` 35 allow hal_imsrtp diag_device:chr_file rw_file_perms; 36') 37dontaudit hal_imsrtp diag_device:chr_file rw_file_perms; 38