Chris PeBenito 6ba4d9
## <summary>Distributed checksum clearinghouse spam filtering</summary>
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute cdcc in the cdcc domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_domtrans_cdcc',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type cdcc_t, cdcc_exec_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	corecmd_search_sbin($1)
Chris PeBenito 6ba4d9
	domain_auto_trans($1,cdcc_exec_t,cdcc_t)
Chris PeBenito 6ba4d9
	allow cdcc_t $1:fd use;
Chris PeBenito 6ba4d9
	allow cdcc_t $1:fifo_file rw_file_perms;
Chris PeBenito 6ba4d9
	allow cdcc_t $1:process sigchld;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute cdcc in the cdcc domain, and
Chris PeBenito 6ba4d9
##	allow the specified role the cdcc domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="role">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The role to be allowed the cdcc domain.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="terminal">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The type of the terminal allow the cdcc domain to use.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_run_cdcc',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type cdcc_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	dcc_domtrans_cdcc($1)
Chris PeBenito 6ba4d9
	role $2 types cdcc_t;
Chris PeBenito 6ba4d9
	allow cdcc_t $3:chr_file rw_term_perms;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute dcc_client in the dcc_client domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_domtrans_client',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type dcc_client_t, dcc_client_exec_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	corecmd_search_sbin($1)
Chris PeBenito 6ba4d9
	domain_auto_trans($1,dcc_client_exec_t,dcc_client_t)
Chris PeBenito 6ba4d9
	allow dcc_client_t $1:fd use;
Chris PeBenito 6ba4d9
	allow dcc_client_t $1:fifo_file rw_file_perms;
Chris PeBenito 6ba4d9
	allow dcc_client_t $1:process sigchld;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute dcc_client in the dcc_client domain, and
Chris PeBenito 6ba4d9
##	allow the specified role the dcc_client domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="role">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The role to be allowed the dcc_client domain.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="terminal">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The type of the terminal allow the dcc_client domain to use.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_run_client',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type dcc_client_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	dcc_domtrans_client($1)
Chris PeBenito 6ba4d9
	role $2 types dcc_client_t;
Chris PeBenito 6ba4d9
	allow dcc_client_t $3:chr_file rw_term_perms;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute dbclean in the dcc_dbclean domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_domtrans_dbclean',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type dcc_dbclean_t, dcc_dbclean_exec_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	corecmd_search_sbin($1)
Chris PeBenito 6ba4d9
	domain_auto_trans($1,dcc_dbclean_exec_t,dcc_dbclean_t)
Chris PeBenito 6ba4d9
	allow dcc_dbclean_t $1:fd use;
Chris PeBenito 6ba4d9
	allow dcc_dbclean_t $1:fifo_file rw_file_perms;
Chris PeBenito 6ba4d9
	allow dcc_dbclean_t $1:process sigchld;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Execute dbclean in the dcc_dbclean domain, and
Chris PeBenito 6ba4d9
##	allow the specified role the dcc_dbclean domain.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="role">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The role to be allowed the dcc_dbclean domain.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
## <param name="terminal">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	The type of the terminal allow the dcc_dbclean domain to use.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_run_dbclean',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type dcc_dbclean_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	dcc_domtrans_dbclean($1)
Chris PeBenito 6ba4d9
	role $2 types dcc_dbclean_t;
Chris PeBenito 6ba4d9
	allow dcc_dbclean_t $3:chr_file rw_term_perms;
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
## <summary>
Chris PeBenito 6ba4d9
##	Connect to dccifd over a unix domain stream socket.
Chris PeBenito 6ba4d9
## </summary>
Chris PeBenito 6ba4d9
## <param name="domain">
Chris PeBenito 6ba4d9
##	<summary>
Chris PeBenito 6ba4d9
##	Domain allowed access.
Chris PeBenito 6ba4d9
##	</summary>
Chris PeBenito 6ba4d9
## </param>
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
interface(`dcc_stream_connect_dccifd',`
Chris PeBenito 6ba4d9
	gen_require(`
Chris PeBenito 6ba4d9
		type dcc_var_t, dccifd_var_run_t, dccifd_t;
Chris PeBenito 6ba4d9
	')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
	files_search_var($1)
Chris PeBenito 6ba4d9
	allow $1 dcc_var_t:dir search;
Chris PeBenito 6ba4d9
	allow $1 dccifd_var_run_t:sock_file { getattr write };
Chris PeBenito 6ba4d9
	allow $1 dccifd_t:unix_stream_socket connectto;
Chris PeBenito 6ba4d9
')