1 type oem_qmi_server, domain, device_domain_deprecated, mlstrustedsubject; 2 type oem_qmi_server_exec, exec_type, file_type; 3 4 init_daemon_domain(oem_qmi_server) 5 6 7 # b/22871314 8 allow oem_qmi_server shared_log_device:chr_file rw_file_perms; 9 10 allow oem_qmi_server sysfs_msm_subsys:dir r_dir_perms; 11 allow oem_qmi_server sysfs_msm_subsys:lnk_file rw_file_perms; 12 13 allow oem_qmi_server self:socket create_socket_perms; 14 allowxperm oem_qmi_server self:socket ioctl msm_sock_ipc_ioctls; 15 16 # Access device /dev/diag 17 userdebug_or_eng(` 18 allow oem_qmi_server diag_device:chr_file rw_file_perms; 19 ') 20 21 qmux_socket(oem_qmi_server) 22