Chris PeBenito 17de1b
## <summary>SASL authentication server</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Connect to SASL.
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(`sasl_connect',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type saslauthd_t, saslauthd_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 0bfccd
	stream_connect_pattern($1, saslauthd_var_run_t, saslauthd_var_run_t, saslauthd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
########################################
Chris PeBenito 7a5e2d
## <summary>
Chris PeBenito 7a5e2d
##	All of the rules required to administrate 
Chris PeBenito 7a5e2d
##	an sasl environment
Chris PeBenito 7a5e2d
## </summary>
Chris PeBenito 7a5e2d
## <param name="domain">
Chris PeBenito 7a5e2d
##	<summary>
Chris PeBenito 7a5e2d
##	Domain allowed access.
Chris PeBenito 7a5e2d
##	</summary>
Chris PeBenito 7a5e2d
## </param>
Chris PeBenito aa7c46
## <param name="role">
Chris PeBenito aa7c46
##	<summary>
Chris PeBenito aa7c46
##	Role allowed access.
Chris PeBenito aa7c46
##	</summary>
Chris PeBenito aa7c46
## </param>
Chris PeBenito 7a5e2d
## <rolecap/>
Chris PeBenito 7a5e2d
#
Chris PeBenito 7a5e2d
interface(`sasl_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Chris PeBenito 0bfccd
		type saslauthd_t, saslauthd_tmp_t, saslauthd_var_run_t;
Chris PeBenito 06099d
		type saslauthd_initrc_exec_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Chris PeBenito b34db7
	allow $1 saslauthd_t:process { ptrace signal_perms getattr };
Chris PeBenito b34db7
	ps_process_pattern($1, saslauthd_t)
Chris PeBenito 06099d
Chris PeBenito 06099d
	init_labeled_script_domtrans($1, saslauthd_initrc_exec_t)
Chris PeBenito 06099d
	domain_system_change_exemption($1)
Chris PeBenito 06099d
	role_transition $2 saslauthd_initrc_exec_t system_r;
Chris PeBenito 06099d
	allow $2 system_r;
Chris PeBenito 06099d
Chris PeBenito 7a5e2d
	files_list_tmp($1)
Chris PeBenito 06099d
	admin_pattern($1, saslauthd_tmp_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 06099d
	admin_pattern($1, saslauthd_var_run_t)
Chris PeBenito 7a5e2d
')