|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
12e9ea |
policy_module(dhcp,1.4.1)
|
|
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 |
17de1b |
init_daemon_domain(dhcpd_t,dhcpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
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 |
17de1b |
allow dhcpd_t self:capability net_raw;
|
|
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 |
17de1b |
allow dhcpd_t self:fifo_file { read write getattr };
|
|
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:netlink_route_socket r_netlink_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 |
17de1b |
can_exec(dhcpd_t,dhcpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(dhcpd_t,dhcpd_state_t,dhcpd_state_t)
|
|
Chris PeBenito |
17de1b |
sysnet_dhcp_state_filetrans(dhcpd_t,dhcpd_state_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(dhcpd_t,dhcpd_tmp_t,dhcpd_tmp_t)
|
|
Chris PeBenito |
c0868a |
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 |
c0868a |
manage_files_pattern(dhcpd_t,dhcpd_var_run_t,dhcpd_var_run_t)
|
|
Chris PeBenito |
17de1b |
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 |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(dhcpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_if(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_nodes(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(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 |
17de1b |
libs_use_ld_so(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
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_config(dhcpd_t)
|
|
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 |
17de1b |
userdom_dontaudit_search_sysadm_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(`
|
|
Chris PeBenito |
8708d9 |
dbus_system_bus_client_template(dhcpd,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 |
nis_use_ypbind(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(dhcpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
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 |
')
|