2005-11-15 20:17:18 +00:00
|
|
|
## <summary>Procmail mail delivery agent</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute procmail with a domain transition.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-15 20:17:18 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-15 20:17:18 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`procmail_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type procmail_exec_t, procmail_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_usr($1)
|
|
|
|
corecmd_search_bin($1)
|
|
|
|
domain_auto_trans($1,procmail_exec_t,procmail_t)
|
|
|
|
|
|
|
|
allow $1 procmail_t:fd use;
|
|
|
|
allow procmail_t $1:fd use;
|
|
|
|
allow procmail_t $1:fifo_file rw_file_perms;
|
|
|
|
allow procmail_t $1:process sigchld;
|
|
|
|
')
|
2005-11-15 20:27:49 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute procmail in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-15 20:27:49 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-15 20:27:49 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`procmail_exec',`
|
|
|
|
gen_require(`
|
|
|
|
type procmail_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_usr($1)
|
|
|
|
corecmd_search_bin($1)
|
|
|
|
can_exec($1,procmail_exec_t)
|
|
|
|
')
|