## Trivial file transfer protocol daemon
########################################
##
## All of the rules required to administrate
## an tftp environment
##
##
##
## Domain allowed access.
##
##
##
##
## The role to be allowed to manage the tftp domain.
##
##
##
##
## The type of the user terminal.
##
##
##
#
interface(`tftp_admin',`
gen_require(`
type tftp_t, tftpdir_t;
type tftp_rw_t, tftp_var_run_t;
')
allow $1 tftp_t:process { ptrace signal_perms getattr };
ps_process_pattern($1, tftp_t)
manage_files_pattern($1, tftp_rw_t, tftp_rw_t)
manage_files_pattern($1, tftpdir_t, tftpdir_t)
files_list_pids($1)
manage_files_pattern($1, tftp_var_run_t, tftp_var_run_t)
')