|
Chris PeBenito |
17de1b |
## <summary>Update dynamic IP address at DynDNS.org</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#######################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute ddclient in the ddclient domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ddclient_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ddclient_t, ddclient_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
c0868a |
domtrans_pattern($1, ddclient_exec_t, ddclient_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
########################################
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
14c786 |
## Execute ddclient daemon on behalf of a user or staff type.
|
|
Chris PeBenito |
14c786 |
## </summary>
|
|
Chris PeBenito |
14c786 |
## <param name="domain">
|
|
Chris PeBenito |
14c786 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
14c786 |
## </summary>
|
|
Chris PeBenito |
14c786 |
## </param>
|
|
Chris PeBenito |
14c786 |
## <param name="role">
|
|
Chris PeBenito |
14c786 |
## <summary>
|
|
Chris PeBenito |
14c786 |
## Role allowed access.
|
|
Chris PeBenito |
14c786 |
## </summary>
|
|
Chris PeBenito |
14c786 |
## </param>
|
|
Chris PeBenito |
14c786 |
## <rolecap/>
|
|
Chris PeBenito |
14c786 |
#
|
|
Chris PeBenito |
14c786 |
interface(`ddclient_run',`
|
|
Chris PeBenito |
14c786 |
gen_require(`
|
|
Chris PeBenito |
14c786 |
type ddclient_t;
|
|
Chris PeBenito |
14c786 |
')
|
|
Chris PeBenito |
14c786 |
|
|
Chris PeBenito |
14c786 |
ddclient_domtrans($1)
|
|
Chris PeBenito |
14c786 |
role $2 types ddclient_t;
|
|
Chris PeBenito |
14c786 |
')
|
|
Chris PeBenito |
14c786 |
|
|
Chris PeBenito |
14c786 |
########################################
|
|
Chris PeBenito |
14c786 |
## <summary>
|
|
Chris PeBenito |
14c786 |
## All of the rules required to administrate
|
|
Chris PeBenito |
e87221 |
## an ddclient 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 ddclient domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`ddclient_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type ddclient_t, ddclient_etc_t, ddclient_log_t;
|
|
Dominick Grift |
6bb4d4 |
type ddclient_var_t, ddclient_var_lib_t, ddclient_initrc_exec_t;
|
|
Dominick Grift |
6bb4d4 |
type ddclient_var_run_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 ddclient_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, ddclient_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, ddclient_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 ddclient_initrc_exec_t system_r;
|
|
Chris PeBenito |
e87221 |
allow $2 system_r;
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_etc($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ddclient_etc_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
logging_list_logs($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ddclient_log_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ddclient_var_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var_lib($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ddclient_var_lib_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_pids($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ddclient_var_run_t)
|
|
Chris PeBenito |
e87221 |
')
|