|
Chris PeBenito |
17de1b |
## <summary>Canna - kana-kanji conversion server</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Connect to Canna 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(`canna_stream_connect',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type canna_t, canna_var_run_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_pids($1)
|
|
Chris PeBenito |
0bfccd |
stream_connect_pattern($1, canna_var_run_t, canna_var_run_t,canna_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 canna 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 canna domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`canna_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type canna_t, canna_log_t, canna_var_lib_t;
|
|
Chris PeBenito |
e87221 |
type canna_var_run_t, canna_initrc_exec_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 canna_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, canna_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, canna_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 canna_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, canna_log_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var_lib($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, canna_var_lib_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_pids($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, canna_var_run_t)
|
|
Chris PeBenito |
e87221 |
')
|