Home | History | Annotate | Download | only in sepolicy
      1 type oem_qmi_server, domain, 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 
     15 # Access device /dev/diag
     16 userdebug_or_eng(`
     17     allow oem_qmi_server diag_device:chr_file rw_file_perms;
     18 ')
     19 
     20 qmux_socket(oem_qmi_server)
     21