Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Allow dnsmasq to inherit/use netd UDP socket.
Browse files Browse the repository at this point in the history
Addresses denials such as:
avc: denied { read write } for comm="dnsmasq" path="socket:[1054090]" dev="sockfs" ino=1054090 scontext=u:r:dnsmasq:s0 tcontext=u:r:netd:s0 tclass=udp_socket
This may not be needed (need to check netd to see if it should be closing
all of these sockets before exec'ing other programs), but should be harmless.

Change-Id: I77c7af5e050e039fd48322914eeabbcb8a716040
Signed-off-by: Stephen Smalley <[email protected]>
  • Loading branch information
stephensmalley committed Jun 11, 2014
1 parent 42fb824 commit 7c11bdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dnsmasq.te
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ 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 };
allow dnsmasq netd:udp_socket { read write };

0 comments on commit 7c11bdc

Please sign in to comment.