1 ## <summary>Update dynamic IP address at DynDNS.org</summary>
3 #######################################
5 ## Execute ddclient in the ddclient domain.
7 ## <param name="domain">
9 ## Domain allowed to transition.
13 interface(`ddclient_domtrans',`
15 type ddclient_t, ddclient_exec_t;
18 corecmd_search_bin($1)
19 domtrans_pattern($1, ddclient_exec_t, ddclient_t)
22 ########################################
24 ## Execute ddclient daemon on behalf of a user or staff type.
26 ## <param name="domain">
28 ## Domain allowed to transition.
31 ## <param name="role">
33 ## Role allowed access.
38 interface(`ddclient_run',`
44 role $2 types ddclient_t;
47 ########################################
49 ## All of the rules required to administrate
50 ## an ddclient environment
52 ## <param name="domain">
54 ## Domain allowed access.
57 ## <param name="role">
59 ## The role to be allowed to manage the ddclient domain.
64 interface(`ddclient_admin',`
66 type ddclient_t, ddclient_etc_t, ddclient_log_t;
67 type ddclient_var_t, ddclient_var_lib_t, ddclient_initrc_exec_t;
68 type ddclient_var_run_t;
71 allow $1 ddclient_t:process signal_perms;
72 ps_process_pattern($1, ddclient_t)
74 tunable_policy(`deny_ptrace',`',`
75 allow $1 ddclient_t:process ptrace;
78 init_labeled_script_domtrans($1, ddclient_initrc_exec_t)
79 domain_system_change_exemption($1)
80 role_transition $2 ddclient_initrc_exec_t system_r;
84 admin_pattern($1, ddclient_etc_t)
87 admin_pattern($1, ddclient_log_t)
90 admin_pattern($1, ddclient_var_t)
92 files_list_var_lib($1)
93 admin_pattern($1, ddclient_var_lib_t)
96 admin_pattern($1, ddclient_var_run_t)