2005-10-10 18:50:08 +00:00
|
|
|
## <summary>SASL authentication server</summary>
|
2005-10-21 16:18:11 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect to SASL.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-21 16:18:11 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-21 16:18:11 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`sasl_connect',`
|
|
|
|
gen_require(`
|
|
|
|
type saslauthd_t, saslauthd_var_run_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_pids($1)
|
2008-07-23 21:38:39 +00:00
|
|
|
stream_connect_pattern($1, saslauthd_var_run_t, saslauthd_var_run_t, saslauthd_t)
|
2005-10-21 16:18:11 +00:00
|
|
|
')
|
2008-02-07 16:37:47 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## All of the rules required to administrate
|
|
|
|
## an sasl environment
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
2008-10-13 13:36:50 +00:00
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
|
|
|
## Role allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
2008-02-07 16:37:47 +00:00
|
|
|
## <rolecap/>
|
|
|
|
#
|
|
|
|
interface(`sasl_admin',`
|
|
|
|
gen_require(`
|
2008-07-23 21:38:39 +00:00
|
|
|
type saslauthd_t, saslauthd_tmp_t, saslauthd_var_run_t;
|
2008-10-09 18:06:24 +00:00
|
|
|
type saslauthd_initrc_exec_t;
|
2008-02-07 16:37:47 +00:00
|
|
|
')
|
|
|
|
|
2008-05-22 15:24:52 +00:00
|
|
|
allow $1 saslauthd_t:process { ptrace signal_perms getattr };
|
|
|
|
ps_process_pattern($1, saslauthd_t)
|
2008-10-09 18:06:24 +00:00
|
|
|
|
|
|
|
init_labeled_script_domtrans($1, saslauthd_initrc_exec_t)
|
|
|
|
domain_system_change_exemption($1)
|
|
|
|
role_transition $2 saslauthd_initrc_exec_t system_r;
|
|
|
|
allow $2 system_r;
|
|
|
|
|
2008-02-07 16:37:47 +00:00
|
|
|
files_list_tmp($1)
|
2008-10-09 18:06:24 +00:00
|
|
|
admin_pattern($1, saslauthd_tmp_t)
|
2008-02-07 16:37:47 +00:00
|
|
|
|
|
|
|
files_list_pids($1)
|
2008-10-09 18:06:24 +00:00
|
|
|
admin_pattern($1, saslauthd_var_run_t)
|
2008-02-07 16:37:47 +00:00
|
|
|
')
|