|
Chris PeBenito |
29af4c |
policy_module(dhcp, 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 dhcpd_t;
|
|
Chris PeBenito |
17de1b |
type dhcpd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(dhcpd_t, dhcpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
659c86 |
type dhcpd_initrc_exec_t;
|
|
Chris PeBenito |
659c86 |
init_script_file(dhcpd_initrc_exec_t)
|
|
Chris PeBenito |
659c86 |
|
|
Chris PeBenito |
17de1b |
type dhcpd_state_t;
|
|
Chris PeBenito |
17de1b |
files_type(dhcpd_state_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dhcpd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(dhcpd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type dhcpd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(dhcpd_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 |
659c86 |
allow dhcpd_t self:capability { net_raw sys_resource };
|
|
Chris PeBenito |
17de1b |
dontaudit dhcpd_t self:capability { net_admin sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:process signal_perms;
|
|
Chris PeBenito |
0b36a2 |
allow dhcpd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:unix_stream_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
# Allow dhcpd_t to use packet sockets
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:rawip_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
can_exec(dhcpd_t, dhcpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(dhcpd_t, dhcpd_state_t, dhcpd_state_t)
|
|
Chris PeBenito |
0bfccd |
sysnet_dhcp_state_filetrans(dhcpd_t, dhcpd_state_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(dhcpd_t, dhcpd_tmp_t, dhcpd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(dhcpd_t, dhcpd_tmp_t, dhcpd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(dhcpd_t, dhcpd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(dhcpd_t, dhcpd_var_run_t, dhcpd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(dhcpd_t, dhcpd_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(dhcpd_t)
|
|
Chris PeBenito |
659c86 |
kernel_read_network_state(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(dhcpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(dhcpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(dhcpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(dhcpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(dhcpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(dhcpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(dhcpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(dhcpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(dhcpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_dhcpd_port(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_dhcpd_port(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_pxe_port(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_dhcpd_server_packets(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_pxe_server_packets(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_rand(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
files_search_var_lib(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
659c86 |
auth_use_nsswitch(dhcpd_t)
|
|
Chris PeBenito |
659c86 |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_dhcp_config(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(dhcpd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
17de1b |
allow dhcpd_t self:capability { chown dac_override setgid setuid sys_chroot };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# used for dynamic DNS
|
|
Chris PeBenito |
17de1b |
bind_read_dnssec_keys(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Dan Walsh |
08e567 |
cobbler_dontaudit_rw_log(dhcpd_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(dhcpd_t)
|
|
Chris PeBenito |
8708d9 |
dbus_connect_system_bus(dhcpd_t)
|
|
Chris PeBenito |
8708d9 |
')
|
|
Chris PeBenito |
8708d9 |
|
|
Chris PeBenito |
8708d9 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
')
|