|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c12621 |
policy_module(dnsmasq, 1.7.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dnsmasq_t;
|
|
Chris PeBenito |
17de1b |
type dnsmasq_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(dnsmasq_t, dnsmasq_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
01e9e7 |
type dnsmasq_initrc_exec_t;
|
|
Chris PeBenito |
01e9e7 |
init_script_file(dnsmasq_initrc_exec_t)
|
|
Chris PeBenito |
01e9e7 |
|
|
Chris PeBenito |
17de1b |
type dnsmasq_lease_t;
|
|
Chris PeBenito |
17de1b |
files_type(dnsmasq_lease_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dnsmasq_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(dnsmasq_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
ed38ca |
allow dnsmasq_t self:capability { net_admin setgid setuid net_bind_service net_raw };
|
|
Chris PeBenito |
17de1b |
dontaudit dnsmasq_t self:capability sys_tty_config;
|
|
Chris PeBenito |
01e9e7 |
allow dnsmasq_t self:process { getcap setcap signal_perms };
|
|
Chris PeBenito |
0b36a2 |
allow dnsmasq_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
ed38ca |
allow dnsmasq_t self:netlink_route_socket { bind create nlmsg_read read write };
|
|
Chris PeBenito |
17de1b |
allow dnsmasq_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dnsmasq_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dnsmasq_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dnsmasq_t self:rawip_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# dhcp leases
|
|
Chris PeBenito |
01e9e7 |
manage_files_pattern(dnsmasq_t, dnsmasq_lease_t, dnsmasq_lease_t)
|
|
Chris PeBenito |
17de1b |
files_var_lib_filetrans(dnsmasq_t,dnsmasq_lease_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(dnsmasq_t, dnsmasq_var_run_t, dnsmasq_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(dnsmasq_t, dnsmasq_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(dnsmasq_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_generic_if(dnsmasq_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(dnsmasq_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(dnsmasq_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(dnsmasq_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(dnsmasq_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_dns_port(dnsmasq_t)
|
|
Chris PeBenito |
01e9e7 |
corenet_udp_bind_all_ports(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_dns_server_packets(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_dhcpd_server_packets(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# allow access to dnsmasq.conf
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(dnsmasq_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
01e9e7 |
|
|
Chris PeBenito |
01e9e7 |
optional_policy(`
|
|
Chris PeBenito |
01e9e7 |
virt_manage_lib_files(dnsmasq_t)
|
|
Chris PeBenito |
01e9e7 |
')
|