diff --git a/dnsmasq.te b/dnsmasq.te index 2195d1bb6dfc7297e3b0a9dac3b7f6032dc1870c..8a2d2e6ee6424a5a2615bd79eafa927ac31a5a8e 100644 --- a/dnsmasq.te +++ b/dnsmasq.te @@ -20,3 +20,4 @@ allow dnsmasq netd:netlink_kobject_uevent_socket { read write }; allow dnsmasq netd:netlink_nflog_socket { read write }; allow dnsmasq netd:netlink_route_socket { read write }; allow dnsmasq netd:unix_stream_socket { read write }; +allow dnsmasq netd:unix_dgram_socket { read write }; diff --git a/hostapd.te b/hostapd.te index ad86a3a5b562e724c6024c774cf787830984a44d..11145de93a668730aed07ca3020752047de59074 100644 --- a/hostapd.te +++ b/hostapd.te @@ -17,8 +17,10 @@ allow hostapd wpa_socket:dir create_dir_perms; allow hostapd wpa_socket:sock_file create_file_perms; allow hostapd netd:fd use; allow hostapd netd:udp_socket { read write }; +allow hostapd netd:fifo_file { read write }; +# TODO: Investigate whether these inherited sockets should be closed on exec. allow hostapd netd:netlink_kobject_uevent_socket { read write }; allow hostapd netd:netlink_nflog_socket { read write }; allow hostapd netd:netlink_route_socket { read write }; allow hostapd netd:unix_stream_socket { read write }; -allow hostapd netd:fifo_file { read write }; +allow hostapd netd:unix_dgram_socket { read write };