summaryrefslogtreecommitdiffstats
path: root/common/qti.te
blob: 2666c79e6dbddefe23db887adc740ffb794d69f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type qti, domain;
type qti_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(qti)
net_domain(qti)

allow qti {
    rmnet_device
    smem_log_device
    mhi_device
    smd_device
    userdebug_or_eng(`kmsg_device')
}:chr_file rw_file_perms;

qmux_socket(qti)

allow qti self:{
    netlink_socket
    socket
    udp_socket
} create_socket_perms_no_ioctl;

allow qti self:socket ioctl;
allowxperm qti self:socket ioctl msm_sock_ipc_ioctls;
allow qti { vendor_shell_exec system_file }:file rx_file_perms;

allow qti sysfs_data:file r_file_perms;

#diag
userdebug_or_eng(`
    diag_use(qti)
    allow qti sysfs:file r_file_perms;
')