Home | History | Annotate | Download | only in sepolicy
      1 # qmuxd daemon
      2 type qmuxd, domain;
      3 type qmuxd_exec, exec_type, file_type;
      4 
      5 init_daemon_domain(qmuxd)
      6 net_domain(qmuxd)
      7 
      8 # Allow access to /dev/hsicctl*.
      9 allow qmuxd hsic_device:chr_file rw_file_perms;
     10 
     11 # Allow access to /sys/devices/virtual/smdpkt/smdcntl*/open_timeout.
     12 allow qmuxd sysfs_smd_open_timeout:file w_file_perms;
     13 
     14 # Allow access to /sys/devices/virtual/hsicctl/hsicctl*/modem_wait.
     15 allow qmuxd sysfs_hsic_modem_wait:file w_file_perms;
     16 
     17 userdebug_or_eng(`
     18     allow qmuxd diag_device:chr_file rw_file_perms;
     19 ')
     20 
     21 # Allow qmuxd to have the CAP_BLOCK_SUSPEND capability
     22 wakelock_use(qmuxd)
     23