Chris PeBenito 17de1b
## <summary>Filter used for removing unsolicited email.</summary>
Chris PeBenito 17de1b
Chris PeBenito 296273
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 296273
##	Role access for spamassassin
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 296273
interface(`spamassassin_role',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 296273
		type spamc_t, spamc_exec_t, spamc_tmp_t;
Chris PeBenito 296273
		type spamassassin_t, spamassassin_exec_t;
Chris PeBenito 296273
		type spamassassin_home_t, spamassassin_tmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 296273
	role $1 types { spamc_t spamassassin_t };
Chris PeBenito 350b6a
Chris PeBenito 296273
	domtrans_pattern($2, spamassassin_exec_t, spamassassin_t)
Chris PeBenito 296273
	ps_process_pattern($2, spamassassin_t)
Chris PeBenito 17de1b
Chris PeBenito 296273
	domtrans_pattern($2, spamc_exec_t, spamc_t)
Chris PeBenito 296273
	ps_process_pattern($2, spamc_t)
Chris PeBenito 17de1b
Chris PeBenito 296273
	manage_dirs_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
	manage_files_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
	manage_lnk_files_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
	relabel_dirs_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
	relabel_files_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
	relabel_lnk_files_pattern($2, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the standalone spamassassin
Chris PeBenito 17de1b
##	program in the caller directory.
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(`spamassassin_exec',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamassassin_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	can_exec($1, spamassassin_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Singnal the spam assassin daemon
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito ff8f0a
##	<summary>
Chris PeBenito ff8f0a
##	The type of the process performing this action.
Chris PeBenito ff8f0a
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`spamassassin_signal_spamd',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamd_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 spamd_t:process signal;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the spamassassin daemon
Chris PeBenito 17de1b
##	program in the caller directory.
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(`spamassassin_exec_spamd',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamd_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	can_exec($1, spamd_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito ff8f0a
##	Execute spamassassin client in the spamassassin client domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 296273
##	<summary>
Chris PeBenito 296273
##	Domain allowed access.
Chris PeBenito 296273
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 296273
interface(`spamassassin_domtrans_client',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 296273
		type spamc_t, spamc_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 296273
	domtrans_pattern($1, spamc_exec_t, spamc_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the spamassassin client
Chris PeBenito 17de1b
##	program in the caller directory.
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(`spamassassin_exec_client',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamc_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	can_exec($1, spamc_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 296273
##	Execute spamassassin standalone client in the user spamassassin domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 296273
##	<summary>
Chris PeBenito 296273
##	Domain allowed access.
Chris PeBenito 296273
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 296273
interface(`spamassassin_domtrans_local_client',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 296273
		type spamassassin_t, spamassassin_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 296273
	domtrans_pattern($1, spamassassin_exec_t, spamassassin_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 59bedc
##	read spamd lib files.
Chris PeBenito 59bedc
## </summary>
Chris PeBenito 59bedc
## <param name="domain">
Chris PeBenito 59bedc
##	<summary>
Chris PeBenito 59bedc
##	Domain allowed access.
Chris PeBenito 59bedc
##	</summary>
Chris PeBenito 59bedc
## </param>
Chris PeBenito 59bedc
#
Chris PeBenito 59bedc
interface(`spamassassin_read_lib_files',`
Chris PeBenito 59bedc
	gen_require(`
Chris PeBenito 59bedc
		type spamd_var_lib_t;
Chris PeBenito 59bedc
	')
Chris PeBenito 59bedc
Chris PeBenito 59bedc
	files_search_var_lib($1)
Chris PeBenito 0bfccd
	read_files_pattern($1, spamd_var_lib_t, spamd_var_lib_t)
Chris PeBenito 59bedc
')
Chris PeBenito 59bedc
Chris PeBenito 59bedc
########################################
Chris PeBenito 59bedc
## <summary>
Chris PeBenito 59bedc
##	Create, read, write, and delete
Chris PeBenito 59bedc
##	spamd lib files.
Chris PeBenito 59bedc
## </summary>
Chris PeBenito 59bedc
## <param name="domain">
Chris PeBenito 59bedc
##	<summary>
Chris PeBenito 59bedc
##	Domain allowed access.
Chris PeBenito 59bedc
##	</summary>
Chris PeBenito 59bedc
## </param>
Chris PeBenito 59bedc
#
Chris PeBenito 59bedc
interface(`spamassassin_manage_lib_files',`
Chris PeBenito 59bedc
	gen_require(`
Chris PeBenito 59bedc
		type spamd_var_lib_t;
Chris PeBenito 59bedc
	')
Chris PeBenito 59bedc
Chris PeBenito 59bedc
	files_search_var_lib($1)
Chris PeBenito 0bfccd
	manage_files_pattern($1, spamd_var_lib_t, spamd_var_lib_t)
Chris PeBenito 59bedc
')
Chris PeBenito 59bedc
Chris PeBenito 59bedc
########################################
Chris PeBenito 59bedc
## <summary>
Chris PeBenito ff8f0a
##	Read temporary spamd file.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito ff8f0a
##	<summary>
Chris PeBenito ff8f0a
##	The type of the process performing this action.
Chris PeBenito ff8f0a
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`spamassassin_read_spamd_tmp_files',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamd_tmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	allow $1 spamd_tmp_t:file read_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to get attributes of temporary
Chris PeBenito 17de1b
##	spamd sockets/
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito ff8f0a
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito ff8f0a
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`spamassassin_dontaudit_getattr_spamd_tmp_sockets',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type spamd_tmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 spamd_tmp_t:sock_file getattr;
Chris PeBenito 17de1b
')