summaryrefslogtreecommitdiffstats
path: root/selinux/qmux.te
blob: e2a5bbf2b81afb0e17012d6d8e64f746f61fe269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Qualcomm Management Interface Multiplexer
type qmux, domain;
type qmux_exec, exec_type, file_type;

# Started by init
init_daemon_domain(qmux)

# Create local qmux_connect_socket
allow qmux qmuxd_socket:dir w_dir_perms;
allow qmux qmuxd_socket:sock_file { create setattr getattr unlink };

# /dev/hsicctl* node access
allow qmux radio_device:chr_file rw_file_perms;

# Allow logging diagnostic items
allow qmux diagnostic_device:chr_file rw_file_perms;

allow qmux self:capability { dac_override setuid };

# XXX Should we label with own type
allow qmux sysfs:file { open write append read getattr };