Chris PeBenito 17de1b
## <summary>Procmail mail delivery agent</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute procmail with a domain transition.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Dominick Grift 288845
##	Domain allowed to transition.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`procmail_domtrans',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type procmail_exec_t, procmail_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_usr($1)
Chris PeBenito 17de1b
	corecmd_search_bin($1)
Chris PeBenito 0bfccd
	domtrans_pattern($1, procmail_exec_t, procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute procmail in the caller domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`procmail_exec',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type procmail_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_usr($1)
Chris PeBenito 17de1b
	corecmd_search_bin($1)
Chris PeBenito 0bfccd
	can_exec($1, procmail_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 01e9e7
Chris PeBenito 01e9e7
########################################
Chris PeBenito 01e9e7
## <summary>
Chris PeBenito 01e9e7
##	Read procmail tmp files.
Chris PeBenito 01e9e7
## </summary>
Chris PeBenito 01e9e7
## <param name="domain">
Chris PeBenito 01e9e7
##	<summary>
Chris PeBenito 01e9e7
##	Domain allowed access.
Chris PeBenito 01e9e7
##	</summary>
Chris PeBenito 01e9e7
## </param>
Chris PeBenito 01e9e7
#
Chris PeBenito 01e9e7
interface(`procmail_read_tmp_files',`
Chris PeBenito 01e9e7
	gen_require(`
Chris PeBenito 01e9e7
		type procmail_tmp_t;
Chris PeBenito 01e9e7
	')
Chris PeBenito 01e9e7
Chris PeBenito 01e9e7
	files_search_tmp($1)
Chris PeBenito 01e9e7
	allow $1 procmail_tmp_t:file read_file_perms;
Chris PeBenito 01e9e7
')
Chris PeBenito 01e9e7
Chris PeBenito 01e9e7
########################################
Chris PeBenito 01e9e7
## <summary>
Chris PeBenito 01e9e7
##	Read/write procmail tmp files.
Chris PeBenito 01e9e7
## </summary>
Chris PeBenito 01e9e7
## <param name="domain">
Chris PeBenito 01e9e7
##	<summary>
Chris PeBenito 01e9e7
##	Domain allowed access.
Chris PeBenito 01e9e7
##	</summary>
Chris PeBenito 01e9e7
## </param>
Chris PeBenito 01e9e7
#
Chris PeBenito 01e9e7
interface(`procmail_rw_tmp_files',`
Chris PeBenito 01e9e7
	gen_require(`
Chris PeBenito 01e9e7
		type procmail_tmp_t;
Chris PeBenito 01e9e7
	')
Chris PeBenito 01e9e7
Chris PeBenito 01e9e7
	files_search_tmp($1)
Chris PeBenito 01e9e7
	rw_files_pattern($1, procmail_tmp_t, procmail_tmp_t)
Chris PeBenito 01e9e7
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
########################################
Dan Walsh 3eaa99
## <summary>
Dan Walsh 3eaa99
##	Read procmail home directory content
Dan Walsh 3eaa99
## </summary>
Dan Walsh 3eaa99
## <param name="domain">
Dan Walsh 3eaa99
##	<summary>
Dan Walsh 3eaa99
##	Domain allowed access.
Dan Walsh 3eaa99
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
interface(`procmail_read_home_files',`
Dan Walsh 3eaa99
	gen_require(`
Dan Walsh 3eaa99
		type procmail_home_t;
Dan Walsh 3eaa99
	')
Dan Walsh 3eaa99
Dominick Grift 2a7245
	userdom_search_user_home_dirs($1)
Dan Walsh 3eaa99
	read_files_pattern($1, procmail_home_t, procmail_home_t)
Dan Walsh 3eaa99
')