|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
cfcf50 |
policy_module(dnsmasq, 1.6.0)
|
|
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 |
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 |
ed38ca |
allow dnsmasq_t self:process { setcap signal_perms };
|
|
Chris PeBenito |
ed38ca |
allow dnsmasq_t self:fifo_file { read write };
|
|
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 |
17de1b |
allow dnsmasq_t dnsmasq_lease_t:file manage_file_perms;
|
|
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 |
17de1b |
corenet_tcp_sendrecv_all_nodes(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_nodes(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_dns_port(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_dns_port(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_dhcpd_port(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 |
libs_use_ld_so(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(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 |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
sysadm_dontaudit_search_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 |
')
|