Skip to content
Snippets Groups Projects
Commit ad10d108 authored by Stephen Smalley's avatar Stephen Smalley Committed by Nick Kralevich
Browse files

DO NOT MERGE: partial backport of 08461cb0


Original change: Allow netd-spawned domains to use inherited netd unix_dgram_socket.

Resolves denials such as:
 avc:  denied  { read write } for  pid=4346 comm="hostapd" path="socket:[7874]" dev="sockfs" ino=7874 scontext=u:r:hostapd:s0 tcontext=u:r:netd:s0 tclass=unix_dgram_socket
 avc:  denied  { read write } for  pid=4348 comm="dnsmasq" path="socket:[7874]" dev="sockfs" ino=7874 scontext=u:r:dnsmasq:s0 tcontext=u:r:netd:s0 tclass=unix_dgram_socket

Change-Id: Iebbbf8f9f31b56ec5b158dda93101472c25e638d
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent 71b92339
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,10 @@ allow hostapd wifi_data_file:sock_file { create setattr write unlink }; ...@@ -15,8 +15,10 @@ allow hostapd wifi_data_file:sock_file { create setattr write unlink };
allow hostapd netd:fd use; allow hostapd netd:fd use;
allow hostapd netd:udp_socket { read write }; 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_kobject_uevent_socket { read write };
allow hostapd netd:netlink_nflog_socket { read write }; allow hostapd netd:netlink_nflog_socket { read write };
allow hostapd netd:netlink_route_socket { read write }; allow hostapd netd:netlink_route_socket { read write };
allow hostapd netd:unix_stream_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 };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment