blob: add648a01404760ba342975099bcd698a0cadd43 [file] [log] [blame]
Bjoern Johanssona2d754c2018-05-15 15:03:12 -07001type hostapd_nohidl, domain;
2type hostapd_nohidl_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(hostapd_nohidl)
5net_domain(hostapd_nohidl)
6
7allow hostapd_nohidl execns:fd use;
8
9allow hostapd_nohidl self:capability { net_admin net_raw };
10allow hostapd_nohidl self:netlink_generic_socket { bind create getattr read setopt write };
11allow hostapd_nohidl self:netlink_route_socket nlmsg_write;
12allow hostapd_nohidl self:packet_socket { create setopt };
13allowxperm hostapd_nohidl self:udp_socket ioctl priv_sock_ioctls;
14
15# hostapd will attempt to search sysfs but it's not needed and will spam the log
16dontaudit hostapd_nohidl sysfs_net:dir search;