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 c0868a
	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 7a5e2d
## <param name="role">
Chris PeBenito 7a5e2d
##	<summary>
Chris PeBenito 7a5e2d
##	The role to be allowed to manage the sasl domain.
Chris PeBenito 7a5e2d
##	</summary>
Chris PeBenito 7a5e2d
## </param>
Chris PeBenito 7a5e2d
## <param name="terminal">
Chris PeBenito 7a5e2d
##	<summary>
Chris PeBenito 7a5e2d
##	The type of the user terminal.
Chris PeBenito 7a5e2d
##	</summary>
Chris PeBenito 7a5e2d
## </param>
Chris PeBenito 7a5e2d
## <rolecap/>
Chris PeBenito 7a5e2d
#
Chris PeBenito 7a5e2d
interface(`sasl_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Chris PeBenito 7a5e2d
		type sasl_t;
Chris PeBenito 7a5e2d
		type sasl_tmp_t;
Chris PeBenito 7a5e2d
		type sasl_var_run_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	allow $1 sasl_t:process { ptrace signal_perms getattr };
Chris PeBenito 7a5e2d
	ps_process_pattern($1, sasl_t)
Chris PeBenito 7a5e2d
	        
Chris PeBenito 7a5e2d
	files_list_tmp($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, sasl_tmp_t, sasl_tmp_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, sasl_var_run_t, sasl_var_run_t)
Chris PeBenito 7a5e2d
')