aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/readmac.te
blob: 23e5e9bf34518382a0d2ed584b3d5bf025bd5bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type readmac, domain;
type readmac_exec, exec_type, file_type;

# Allow for transition from init domain to readmac
init_daemon_domain(readmac)

# Allow readmac to communicate with qmuxd via qmux_radio socket
qmux_socket(readmac)

# Allow readmac to fully access wlan_mac.bin persist file
allow readmac persist_file:dir rw_dir_perms;
allow readmac persist_file:file create_file_perms;

allow readmac self:capability dac_override;
allow readmac self:socket create_socket_perms;

allow readmac diag_device:chr_file rw_file_perms;
allow readmac sysfs:file r_file_perms;