|
Chris PeBenito |
17de1b |
## <summary>Cyrus is an IMAP service intended to be run on sealed servers</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Allow caller to create, read, write,
|
|
Chris PeBenito |
17de1b |
## and delete cyrus data files.
|
|
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(`cyrus_manage_data',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type cyrus_var_lib_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var_lib($1)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, cyrus_var_lib_t, cyrus_var_lib_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Connect to Cyrus using 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(`cyrus_stream_connect',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type cyrus_t, cyrus_var_lib_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var_lib($1)
|
|
Chris PeBenito |
0bfccd |
stream_connect_pattern($1, cyrus_var_lib_t, cyrus_var_lib_t, cyrus_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
########################################
|
|
Chris PeBenito |
74993c |
## <summary>
|
|
Chris PeBenito |
74993c |
## All of the rules required to administrate
|
|
Chris PeBenito |
74993c |
## an cyrus environment
|
|
Chris PeBenito |
74993c |
## </summary>
|
|
Chris PeBenito |
74993c |
## <param name="domain">
|
|
Chris PeBenito |
74993c |
## <summary>
|
|
Chris PeBenito |
74993c |
## Domain allowed access.
|
|
Chris PeBenito |
74993c |
## </summary>
|
|
Chris PeBenito |
74993c |
## </param>
|
|
Chris PeBenito |
74993c |
## <param name="role">
|
|
Chris PeBenito |
74993c |
## <summary>
|
|
Chris PeBenito |
74993c |
## The role to be allowed to manage the cyrus domain.
|
|
Chris PeBenito |
74993c |
## </summary>
|
|
Chris PeBenito |
74993c |
## </param>
|
|
Chris PeBenito |
74993c |
## <rolecap/>
|
|
Chris PeBenito |
74993c |
#
|
|
Chris PeBenito |
74993c |
interface(`cyrus_admin',`
|
|
Chris PeBenito |
74993c |
gen_require(`
|
|
Chris PeBenito |
74993c |
type cyrus_t, cyrus_tmp_t, cyrus_var_lib_t;
|
|
Chris PeBenito |
74993c |
type cyrus_var_run_t, cyrus_initrc_exec_t;
|
|
Chris PeBenito |
74993c |
')
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
allow $1 cyrus_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
74993c |
ps_process_pattern($1, cyrus_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
init_labeled_script_domtrans($1, cyrus_initrc_exec_t)
|
|
Chris PeBenito |
74993c |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
74993c |
role_transition $2 cyrus_initrc_exec_t system_r;
|
|
Chris PeBenito |
74993c |
allow $2 system_r;
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
files_list_tmp($1)
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cyrus_tmp_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
files_list_var_lib($1)
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cyrus_var_lib_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
files_list_pids($1)
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cyrus_var_run_t)
|
|
Chris PeBenito |
74993c |
')
|