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