123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- ## <summary>Jabber instant messaging servers.</summary>
- #######################################
- ## <summary>
- ## The template to define a jabber domain.
- ## </summary>
- ## <param name="domain_prefix">
- ## <summary>
- ## Domain prefix to be used.
- ## </summary>
- ## </param>
- #
- template(`jabber_domain_template',`
- gen_require(`
- attribute jabberd_domain;
- ')
- type $1_t, jabberd_domain;
- type $1_exec_t;
- init_daemon_domain($1_t, $1_exec_t)
- ')
- ########################################
- ## <summary>
- ## Create, read, write, and delete
- ## jabber lib files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`jabber_manage_lib_files',`
- gen_require(`
- type jabberd_var_lib_t;
- ')
- files_search_var_lib($1)
- manage_files_pattern($1, jabberd_var_lib_t, jabberd_var_lib_t)
- ')
- ########################################
- ## <summary>
- ## Connect to jabber over a TCP socket (Deprecated)
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`jabber_tcp_connect',`
- refpolicywarn(`$0($*) has been deprecated.')
- ')
- ########################################
- ## <summary>
- ## All of the rules required to
- ## administrate an jabber environment.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- ## <param name="role">
- ## <summary>
- ## Role allowed access.
- ## </summary>
- ## </param>
- ## <rolecap/>
- #
- interface(`jabber_admin',`
- gen_require(`
- attribute jabberd_domain;
- type jabberd_lock_t, jabberd_log_t, jabberd_spool_t;
- type jabberd_var_lib_t, jabberd_var_run_t, jabberd_initrc_exec_t;
- ')
- allow $1 jabberd_domain:process { ptrace signal_perms };
- ps_process_pattern($1, jabberd_domain)
- init_labeled_script_domtrans($1, jabberd_initrc_exec_t)
- domain_system_change_exemption($1)
- role_transition $2 jabberd_initrc_exec_t system_r;
- allow $2 system_r;
- files_search_locks($1)
- admin_pattern($1, jabberd_lock_t)
- logging_search_logs($1)
- admin_pattern($1, jabberd_log_t)
- files_search_spool($1)
- admin_pattern($1, jabberd_spool_t)
- files_search_var_lib($1)
- admin_pattern($1, jabberd_var_lib_t)
- files_search_pids($1)
- admin_pattern($1, jabberd_var_run_t)
- ')
- ########################################
- ## <summary>
- ## Execute ejabberd with a domain transition.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed to transition.
- ## </summary>
- ## </param>
- #
- interface(`jabber_domtrans',`
- gen_require(`
- type jabberd_t, jabberd_exec_t;
- ')
- corecmd_search_bin($1)
- domtrans_pattern($1, jabberd_exec_t, jabberd_t)
- ')
|