Blame refpolicy/policy/modules/apps/webalizer.if
|
Chris PeBenito |
f33561 |
## <summary>Web server log analysis</summary>
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
be4690 |
########################################
|
|
Chris PeBenito |
be4690 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## Execute webalizer in the webalizer domain.
|
|
Chris PeBenito |
be4690 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## </param>
|
|
Chris PeBenito |
be4690 |
#
|
|
Chris PeBenito |
be4690 |
interface(`webalizer_domtrans',`
|
|
Chris PeBenito |
be4690 |
gen_require(`
|
|
Chris PeBenito |
be4690 |
type webalizer_t, webalizer_exec_t;
|
|
Chris PeBenito |
be4690 |
')
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
be4690 |
domain_auto_trans($1,webalizer_exec_t,webalizer_t)
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
be4690 |
allow $1 webalizer_t:fd use;
|
|
Chris PeBenito |
be4690 |
allow webalizer_t $1:fd use;
|
|
Chris PeBenito |
be4690 |
allow webalizer_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
be4690 |
allow webalizer_t $1:process sigchld;
|
|
Chris PeBenito |
be4690 |
')
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
be4690 |
########################################
|
|
Chris PeBenito |
be4690 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## Execute webalizer in the webalizer domain, and
|
|
Chris PeBenito |
be4690 |
## allow the specified role the webalizer domain.
|
|
Chris PeBenito |
be4690 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## </param>
|
|
Chris PeBenito |
be4690 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## The role to be allowed the webalizer domain.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## </param>
|
|
Chris PeBenito |
be4690 |
## <param name="terminal">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
be4690 |
## The type of the terminal allow the webalizer domain to use.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
be4690 |
## </param>
|
|
Chris PeBenito |
be4690 |
#
|
|
Chris PeBenito |
be4690 |
interface(`webalizer_run',`
|
|
Chris PeBenito |
be4690 |
gen_require(`
|
|
Chris PeBenito |
be4690 |
type webalizer_t;
|
|
Chris PeBenito |
be4690 |
')
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
be4690 |
webalizer_domtrans($1)
|
|
Chris PeBenito |
be4690 |
role $2 types webalizer_t;
|
|
Chris PeBenito |
be4690 |
allow webalizer_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
be4690 |
')
|