|
Chris PeBenito |
29af4c |
policy_module(dnsmasq, 1.9.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 |
01e9e7 |
type dnsmasq_initrc_exec_t;
|
|
Chris PeBenito |
01e9e7 |
init_script_file(dnsmasq_initrc_exec_t)
|
|
Chris PeBenito |
01e9e7 |
|
|
Dominick Grift |
1031ee |
type dnsmasq_etc_t;
|
|
Dominick Grift |
1031ee |
files_config_file(dnsmasq_etc_t)
|
|
Dominick Grift |
1031ee |
|
|
Chris PeBenito |
17de1b |
type dnsmasq_lease_t;
|
|
Chris PeBenito |
17de1b |
files_type(dnsmasq_lease_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
37194a |
type dnsmasq_var_log_t;
|
|
Jeremy Solt |
37194a |
logging_log_file(dnsmasq_var_log_t)
|
|
Jeremy Solt |
37194a |
|
|
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 |
|
|
Jeremy Solt |
37194a |
allow dnsmasq_t self:capability { chown dac_override 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 |
|
|
Jeremy Solt |
37194a |
read_files_pattern(dnsmasq_t, dnsmasq_etc_t, dnsmasq_etc_t)
|
|
Dominick Grift |
1031ee |
|
|
Chris PeBenito |
17de1b |
# dhcp leases
|
|
Chris PeBenito |
01e9e7 |
manage_files_pattern(dnsmasq_t, dnsmasq_lease_t, dnsmasq_lease_t)
|
|
Chris PeBenito |
3f67f7 |
files_var_lib_filetrans(dnsmasq_t, dnsmasq_lease_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
37194a |
manage_files_pattern(dnsmasq_t, dnsmasq_var_log_t, dnsmasq_var_log_t)
|
|
Jeremy Solt |
37194a |
logging_log_filetrans(dnsmasq_t, dnsmasq_var_log_t, file)
|
|
Jeremy Solt |
37194a |
|
|
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 |
8f17f7 |
kernel_read_system_state(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 |
27eab8 |
files_read_etc_files(dnsmasq_t)
|
|
Chris PeBenito |
8f800d |
files_read_etc_runtime_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 |
8f800d |
auth_use_nsswitch(dnsmasq_t)
|
|
Chris PeBenito |
8f800d |
|
|
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 |
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(`
|
|
Jeremy Solt |
37194a |
cobbler_read_lib_files(dnsmasq_t)
|
|
Jeremy Solt |
37194a |
')
|
|
Jeremy Solt |
37194a |
|
|
Jeremy Solt |
37194a |
optional_policy(`
|
|
Jeremy Solt |
37194a |
dbus_system_bus_client(dnsmasq_t)
|
|
Jeremy Solt |
37194a |
')
|
|
Jeremy Solt |
37194a |
|
|
Jeremy Solt |
37194a |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(dnsmasq_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8f17f7 |
tftp_read_content(dnsmasq_t)
|
|
Chris PeBenito |
8f17f7 |
')
|
|
Chris PeBenito |
8f17f7 |
|
|
Chris PeBenito |
8f17f7 |
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 |
8f800d |
virt_read_pid_files(dnsmasq_t)
|
|
Chris PeBenito |
01e9e7 |
')
|