blob: 68b9d5949730a17a96dbfd4ec4bac470b07188f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#must be defined for file_contexts
type qmi_ping_exec, exec_type, vendor_file_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};
#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 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);
')
|