Skip to content
Snippets Groups Projects
Commit b1cb3205 authored by Stephen Smalley's avatar Stephen Smalley
Browse files

Confine wpa_supplicant, but leave it permissive for now.


Change-Id: Iaa4ed5428d1c49cb4cff3a39c48800cb108f2ac3
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent 91ebcf33
No related branches found
No related tags found
No related merge requests found
# wpa - wpa supplicant or equivalent # wpa - wpa supplicant or equivalent
type wpa, domain; type wpa, domain;
permissive wpa;
type wpa_exec, exec_type, file_type; type wpa_exec, exec_type, file_type;
init_daemon_domain(wpa) init_daemon_domain(wpa)
unconfined_domain(wpa) allow wpa kernel:system module_request;
allow wpa self:capability { setuid net_admin setgid net_raw };
allow wpa cgroup:dir create_dir_perms;
allow wpa self:netlink_route_socket *;
allow wpa self:netlink_socket *;
allow wpa self:packet_socket *;
allow wpa self:udp_socket *;
allow wpa wifi_data_file:dir create_dir_perms;
allow wpa wifi_data_file:file create_file_perms;
unix_socket_send(wpa, system_wpa, system_server)
allow wpa random_device:chr_file r_file_perms;
# Create a socket for receiving info from wpa
type_transition wpa wifi_data_file:sock_file wpa_socket; type_transition wpa wifi_data_file:sock_file wpa_socket;
allow wpa wpa_socket:sock_file create_file_perms;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment