Blame policy/modules/services/tftp.if
|
Chris PeBenito |
17de1b |
## <summary>Trivial file transfer protocol daemon</summary>
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
########################################
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## All of the rules required to administrate
|
|
Chris PeBenito |
7a5e2d |
## an tftp environment
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## <param name="domain">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## Domain allowed access.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <param name="role">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## The role to be allowed to manage the tftp domain.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <param name="terminal">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## The type of the user terminal.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <rolecap/>
|
|
Chris PeBenito |
7a5e2d |
#
|
|
Chris PeBenito |
7a5e2d |
interface(`tftp_admin',`
|
|
Chris PeBenito |
7a5e2d |
gen_require(`
|
|
Chris PeBenito |
7a5e2d |
type tftp_t, tftpdir_t;
|
|
Chris PeBenito |
7a5e2d |
type tftp_rw_t, tftp_var_run_t;
|
|
Chris PeBenito |
7a5e2d |
')
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
allow $1 tftp_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
7a5e2d |
ps_process_pattern($1, tftp_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, tftp_rw_t, tftp_rw_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, tftpdir_t, tftpdir_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
files_list_pids($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, tftp_var_run_t, tftp_var_run_t)
|
|
Chris PeBenito |
7a5e2d |
')
|