platform_system_sepolicy/dnsmasq.te
Stephen Smalley c6a28f0cb2 Make dnsmasq permissive or unconfined.
Also add rules from our policy.

Change-Id: I86f07f54c5120c511f9cab2877cf765c3ae7c1a8
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2014-02-11 10:24:40 -05:00

12 lines
418 B
Text

# DNS, DHCP services
type dnsmasq, domain;
permissive_or_unconfined(dnsmasq)
type dnsmasq_exec, exec_type, file_type;
allow dnsmasq self:capability { net_bind_service setgid setuid };
allow dnsmasq self:tcp_socket create_socket_perms;
allow dnsmasq dhcp_data_file:dir w_dir_perms;
allow dnsmasq dhcp_data_file:file create_file_perms;
allow dnsmasq port:tcp_socket name_bind;
allow dnsmasq node:tcp_socket node_bind;