policy update for dnsmasq
PATCH 1/1 policy update for dnsmasq
Please apply the attached dnsmasq policy patch. It's needed in order to support version 2.10 and later (see below for details).
Let me know if I can provide any additional information. Thanx!
----- Forwarded message from Greg Norris <[email protected]> -----
Date: Tue, 14 Sep 2004 20:18:36 -0500
From: Greg Norris <[email protected]>
To: SE-Linux <[email protected]>, Russell Coker <[email protected]>
Cc: [email protected]
Subject: policy update for dnsmasq
X-Mailing-List: selinux-tycho.nsa.gov
I've attached a small patch against the dnsmasq policy, which provides the updates indicated below. Thanx to Simon Kelley, author of this wondrous beastie, for bringing the relevant enhancements to my attention. ;-)
1) Allow binding to port 53 TCP. Beginning with version 2.10, dnsmasq supports DNS queries over both TCP and UDP.
2) Allow the creation of RAWIP sockets, in order to enable ICMP echo requests. This is used as a sanity-check before assigning an IP address via DHCP, to ensure that it isn't already in use.
I've been running with the modified policy for the past few days (while trying to stress it appropriately), and everything appears to be working as expected... I think it's ready to be merged into CVS. As always, comments are most welcome.
dnsmasq.te renamed from dnsmasq.te.orig +2 -1
@@ -18,12 +18,13 @@ # network-related goodies can_network(dnsmasq_t) allow dnsmasq_t self:packet_socket create_socket_perms; +allow dnsmasq_t self:rawip_socket create_socket_perms; allow dnsmasq_t self:unix_dgram_socket create_socket_perms; allow dnsmasq_t self:unix_stream_socket create_stream_socket_perms; # UDP ports 53 and 67 allow dnsmasq_t dhcpd_port_t:udp_socket name_bind; -allow dnsmasq_t dns_port_t:udp_socket name_bind; +allow dnsmasq_t dns_port_t:{ tcp_socket udp_socket } name_bind; # By default, dnsmasq binds to the wildcard address to listen for DNS requests. # Comment out the following entry if you do not want to allow this behaviour.
Merged.
Quoted 30 lines · Greg Norris
Please apply the attached dnsmasq policy patch. It's needed in order to support version 2.10 and later (see below for details).
Let me know if I can provide any additional information. Thanx!
----- Forwarded message from Greg Norris <[email protected]> -----
Date: Tue, 14 Sep 2004 20:18:36 -0500
From: Greg Norris <[email protected]>
To: SE-Linux <[email protected]>, Russell Coker <[email protected]>
Cc: [email protected]
Subject: policy update for dnsmasq
X-Mailing-List: selinux-tycho.nsa.govI've attached a small patch against the dnsmasq policy, which provides the updates indicated below. Thanx to Simon Kelley, author of this wondrous beastie, for bringing the relevant enhancements to my attention. ;-)
1) Allow binding to port 53 TCP. Beginning with version 2.10, dnsmasq supports DNS queries over both TCP and UDP.
2) Allow the creation of RAWIP sockets, in order to enable ICMP echo requests. This is used as a sanity-check before assigning an IP address via DHCP, to ensure that it isn't already in use.
I've been running with the modified policy for the past few days (while trying to stress it appropriately), and everything appears to be working as expected... I think it's ready to be merged into CVS. As always, comments are most welcome.
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.