|
Chris PeBenito |
17de1b |
## <summary>Jabber instant messaging server</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
5fb4db |
#######################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Execute a domain transition to run jabberd services
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Domain allowed to transition.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## </param>
|
|
Dan Walsh |
5fb4db |
#
|
|
Dan Walsh |
5fb4db |
interface(`jabber_domtrans_jabberd',`
|
|
Dan Walsh |
5fb4db |
gen_require(`
|
|
Dan Walsh |
5fb4db |
type jabberd_t, jabberd_exec_t;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
domtrans_pattern($1, jabberd_exec_t, jabberd_t)
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
######################################
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Execute a domain transition to run jabberd router service
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## <param name="domain">
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Domain allowed to transition.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## </param>
|
|
Dan Walsh |
5fb4db |
#
|
|
Dan Walsh |
5fb4db |
interface(`jabber_domtrans_jabberd_router',`
|
|
Dan Walsh |
5fb4db |
gen_require(`
|
|
Dan Walsh |
5fb4db |
type jabberd_router_t, jabberd_router_exec_t;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
domtrans_pattern($1, jabberd_router_exec_t, jabberd_router_t)
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
#######################################
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Read jabberd lib files.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## <param name="domain">
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Domain allowed access.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Dan Walsh |
5fb4db |
interface(`jabberd_read_lib_files',`
|
|
Dan Walsh |
5fb4db |
gen_require(`
|
|
Dan Walsh |
5fb4db |
type jabberd_var_lib_t;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
files_search_var_lib($1)
|
|
Dan Walsh |
5fb4db |
read_files_pattern($1, jabberd_var_lib_t, jabberd_var_lib_t)
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
#######################################
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Dontaudit inherited read jabberd lib files.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## <param name="domain">
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Domain allowed access.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## </param>
|
|
Dan Walsh |
5fb4db |
#
|
|
Dan Walsh |
5fb4db |
interface(`jabberd_dontaudit_read_lib_files',`
|
|
Dan Walsh |
5fb4db |
gen_require(`
|
|
Dan Walsh |
5fb4db |
type jabberd_var_lib_t;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
dontaudit $1 jabberd_var_lib_t:file read_inherited_file_perms;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
#######################################
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Create, read, write, and delete
|
|
Dan Walsh |
5fb4db |
## jabberd lib files.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## <param name="domain">
|
|
Dan Walsh |
5fb4db |
## <summary>
|
|
Dan Walsh |
5fb4db |
## Domain allowed access.
|
|
Dan Walsh |
5fb4db |
## </summary>
|
|
Dan Walsh |
5fb4db |
## </param>
|
|
Dan Walsh |
5fb4db |
#
|
|
Dan Walsh |
5fb4db |
interface(`jabberd_manage_lib_files',`
|
|
Dan Walsh |
5fb4db |
gen_require(`
|
|
Dan Walsh |
5fb4db |
type jabberd_var_lib_t;
|
|
Dan Walsh |
5fb4db |
')
|
|
Dan Walsh |
5fb4db |
|
|
Dan Walsh |
5fb4db |
files_search_var_lib($1)
|
|
Dan Walsh |
5fb4db |
manage_files_pattern($1, jabberd_var_lib_t, jabberd_var_lib_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
########################################
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## All of the rules required to administrate
|
|
Chris PeBenito |
e87221 |
## an jabber environment
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## <param name="domain">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## Domain allowed access.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <param name="role">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## The role to be allowed to manage the jabber domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`jabber_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type jabberd_t, jabberd_log_t, jabberd_var_lib_t;
|
|
Chris PeBenito |
e87221 |
type jabberd_var_run_t, jabberd_initrc_exec_t;
|
|
Dan Walsh |
5fb4db |
type jabberd_router_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 jabberd_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, jabberd_t)
|
|
Chris PeBenito |
e87221 |
|
|
Dan Walsh |
5fb4db |
allow $1 jabberd_router_t:process { ptrace signal_perms };
|
|
Dan Walsh |
5fb4db |
ps_process_pattern($1, jabberd_router_t)
|
|
Dan Walsh |
5fb4db |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, jabberd_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 jabberd_initrc_exec_t system_r;
|
|
Chris PeBenito |
e87221 |
allow $2 system_r;
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
logging_list_logs($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, jabberd_log_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var_lib($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, jabberd_var_lib_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_pids($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, jabberd_var_run_t)
|
|
Chris PeBenito |
e87221 |
')
|