blob: c5808f142023d7115f2eb881d30fbcc696eedb79 [file] [log] [blame]
#must be defined for file_contexts
type qmi_ping_exec, exec_type, file_type;
userdebug_or_eng(`
type qmi_ping, domain;
domain_auto_trans(shell, qmi_ping_exec, qmi_ping)
domain_auto_trans(adbd, qmi_ping_exec, qmi_ping)
#test launched from pseudo terminal, so output goes there
allow qmi_ping devpts:chr_file {read write ioctl getattr};
#to access smem logs
allow qmi_ping smem_log_device:chr_file {read write open ioctl};
#to enable qmuxd interface apis to access diag
allow qmi_ping diag_device:chr_file {read write open ioctl};
#enable accessing the path where qmuxds named sockets are present
#to interface with qmuxd through unix sockets
#to use socket interface to ipc router
allow qmi_ping qmi_ping:socket {create bind read write ioctl setopt};
#enable running test as root user => privileged process
#enable privileged processes to bypass permission checks
allow qmi_ping qmi_ping:capability {dac_override dac_read_search setgid setuid fsetid};
#QCCI calls qmuxd API. The API will internally require this
qmux_socket(qmi_ping);
')