selinux-policy/policy/modules/services/procmail.if

80 lines
1.5 KiB
Plaintext
Raw Normal View History

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">
## <summary>
2005-11-15 20:17:18 +00:00
## Domain allowed access.
## </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)
domtrans_pattern($1, procmail_exec_t, procmail_t)
2005-11-15 20:17:18 +00:00
')
2005-11-15 20:27:49 +00:00
########################################
## <summary>
## Execute procmail in the caller domain.
## </summary>
## <param name="domain">
## <summary>
2005-11-15 20:27:49 +00:00
## Domain allowed access.
## </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)
2005-11-15 20:27:49 +00:00
')
2008-11-18 19:55:10 +00:00
########################################
## <summary>
## Read procmail tmp files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`procmail_read_tmp_files',`
gen_require(`
type procmail_tmp_t;
')
files_search_tmp($1)
allow $1 procmail_tmp_t:file read_file_perms;
')
########################################
## <summary>
## Read/write procmail tmp files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`procmail_rw_tmp_files',`
gen_require(`
type procmail_tmp_t;
')
files_search_tmp($1)
rw_files_pattern($1, procmail_tmp_t, procmail_tmp_t)
')