|
Chris PeBenito |
29af4c |
policy_module(tftp, 1.12.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
## <desc>
|
|
Dominick Grift |
1e2abe |
##
|
|
Dominick Grift |
1e2abe |
## Allow tftp to modify public files
|
|
Dominick Grift |
1e2abe |
## used for public file transfer services.
|
|
Dominick Grift |
1e2abe |
##
|
|
Chris PeBenito |
226c06 |
## </desc>
|
|
Chris PeBenito |
0bfccd |
gen_tunable(tftp_anon_write, false)
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
17de1b |
type tftpd_t;
|
|
Chris PeBenito |
17de1b |
type tftpd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(tftpd_t, tftpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type tftpd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(tftpd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type tftpdir_t;
|
|
Chris PeBenito |
17de1b |
files_type(tftpdir_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
type tftpdir_rw_t;
|
|
Chris PeBenito |
226c06 |
files_type(tftpdir_rw_t)
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow tftpd_t self:capability { setgid setuid sys_chroot };
|
|
Dominick Grift |
568349 |
dontaudit tftpd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow tftpd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow tftpd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow tftpd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow tftpd_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow tftpd_t tftpdir_t:dir list_dir_perms;
|
|
Chris PeBenito |
0b36a2 |
allow tftpd_t tftpdir_t:file read_file_perms;
|
|
Dominick Grift |
7d1f56 |
allow tftpd_t tftpdir_t:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
manage_dirs_pattern(tftpd_t, tftpdir_rw_t, tftpdir_rw_t)
|
|
Chris PeBenito |
226c06 |
manage_files_pattern(tftpd_t, tftpdir_rw_t, tftpdir_rw_t)
|
|
Chris PeBenito |
226c06 |
manage_lnk_files_pattern(tftpd_t, tftpdir_rw_t, tftpdir_rw_t)
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(tftpd_t, tftpd_var_run_t, tftpd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(tftpd_t, tftpd_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
47293b |
kernel_read_system_state(tftpd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(tftpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(tftpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(tftpd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(tftpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(tftpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(tftpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(tftpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(tftpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(tftpd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(tftpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_tftp_port(tftpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_tftp_server_packets(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(tftpd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
26410d |
files_read_etc_files(tftpd_t)
|
|
Chris PeBenito |
26410d |
files_read_etc_runtime_files(tftpd_t)
|
|
Chris PeBenito |
17de1b |
files_read_var_files(tftpd_t)
|
|
Chris PeBenito |
17de1b |
files_read_var_symlinks(tftpd_t)
|
|
Chris PeBenito |
17de1b |
files_search_var(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e87221 |
auth_use_nsswitch(tftpd_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(tftpd_t)
|
|
Chris PeBenito |
f6a590 |
miscfiles_read_public_files(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(tftpd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_use_user_terminals(tftpd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(tftpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
226c06 |
tunable_policy(`tftp_anon_write',`
|
|
Chris PeBenito |
226c06 |
miscfiles_manage_public_files(tftpd_t)
|
|
Chris PeBenito |
2650ca |
')
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Dan Walsh |
2968e0 |
cobbler_read_lib_files(tftpd_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
inetd_udp_service_domain(tftpd_t, tftpd_exec_t)
|
|
Chris PeBenito |
d4a48c |
')
|
|
Chris PeBenito |
d4a48c |
|
|
Chris PeBenito |
d4a48c |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
seutil_sigchld_newrole(tftpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
udev_read_db(tftpd_t)
|
|
Chris PeBenito |
17de1b |
')
|