|
Chris PeBenito |
a5ef55 |
## <summary>Pingd of the Whatsup cluster node up/down detection utility</summary>
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
########################################
|
|
Chris PeBenito |
a5ef55 |
## <summary>
|
|
Chris PeBenito |
a5ef55 |
## Execute a domain transition to run pingd.
|
|
Chris PeBenito |
a5ef55 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## <param name="domain">
|
|
Chris PeBenito |
a5ef55 |
## <summary>
|
|
Chris PeBenito |
a5ef55 |
## Domain allowed to transition.
|
|
Chris PeBenito |
a5ef55 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## </param>
|
|
Chris PeBenito |
a5ef55 |
#
|
|
Chris PeBenito |
a5ef55 |
interface(`pingd_domtrans',`
|
|
Chris PeBenito |
a5ef55 |
gen_require(`
|
|
Chris PeBenito |
a5ef55 |
type pingd_t, pingd_exec_t;
|
|
Chris PeBenito |
a5ef55 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
domtrans_pattern($1, pingd_exec_t, pingd_t)
|
|
Chris PeBenito |
a5ef55 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
#######################################
|
|
Chris PeBenito |
a5ef55 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Read pingd etc configuration files.
|
|
Chris PeBenito |
a5ef55 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed access.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## </param>
|
|
Chris PeBenito |
a5ef55 |
#
|
|
Chris PeBenito |
a5ef55 |
interface(`pingd_read_config',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type pingd_etc_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
3f67f7 |
files_search_etc($1)
|
|
Chris PeBenito |
3f67f7 |
read_files_pattern($1, pingd_etc_t, pingd_etc_t)
|
|
Chris PeBenito |
a5ef55 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
#######################################
|
|
Chris PeBenito |
a5ef55 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Manage pingd etc configuration files.
|
|
Chris PeBenito |
a5ef55 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed access.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## </param>
|
|
Chris PeBenito |
a5ef55 |
#
|
|
Chris PeBenito |
a5ef55 |
interface(`pingd_manage_config',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type pingd_etc_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
3f67f7 |
files_search_etc($1)
|
|
Chris PeBenito |
3f67f7 |
manage_dirs_pattern($1, pingd_etc_t, pingd_etc_t)
|
|
Chris PeBenito |
3f67f7 |
manage_files_pattern($1, pingd_etc_t, pingd_etc_t)
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
#######################################
|
|
Chris PeBenito |
a5ef55 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## All of the rules required to administrate
|
|
Chris PeBenito |
3f67f7 |
## an pingd environment
|
|
Chris PeBenito |
a5ef55 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed access.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## </param>
|
|
Chris PeBenito |
a5ef55 |
## <param name="role">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## The role to be allowed to manage the pingd domain.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
a5ef55 |
## </param>
|
|
Chris PeBenito |
a5ef55 |
## <rolecap/>
|
|
Chris PeBenito |
a5ef55 |
#
|
|
Chris PeBenito |
a5ef55 |
interface(`pingd_admin',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type pingd_t, pingd_etc_t;
|
|
Chris PeBenito |
3f67f7 |
type pingd_initrc_exec_t, pingd_modules_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
3f67f7 |
allow $1 pingd_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
3f67f7 |
ps_process_pattern($1, pingd_t)
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
3f67f7 |
init_labeled_script_domtrans($1, pingd_initrc_exec_t)
|
|
Chris PeBenito |
3f67f7 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
3f67f7 |
role_transition $2 pingd_initrc_exec_t system_r;
|
|
Chris PeBenito |
3f67f7 |
allow $2 system_r;
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
3f67f7 |
files_list_etc($1)
|
|
Chris PeBenito |
3f67f7 |
admin_pattern($1, pingd_etc_t)
|
|
Chris PeBenito |
a5ef55 |
|
|
Chris PeBenito |
a5ef55 |
files_list_usr($1)
|
|
Chris PeBenito |
3f67f7 |
admin_pattern($1, pingd_modules_t)
|
|
Chris PeBenito |
a5ef55 |
')
|