|
Chris PeBenito |
17de1b |
## <summary>Network time protocol daemon</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## NTP stub interface. No access allowed.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
f7eaee |
## <param name="domain" unused="true">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
f7eaee |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ntp_stub',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ntpd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute ntp server in the ntpd domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ntp_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ntpd_t, ntpd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, ntpd_exec_t, ntpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute ntp server in the ntpd domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ntp_domtrans_ntpdate',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ntpd_t, ntpdate_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, ntpdate_exec_t, ntpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
########################################
|
|
Chris PeBenito |
cca4a2 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Read and write ntpd shared memory.
|
|
Chris PeBenito |
cca4a2 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## <param name="domain">
|
|
Chris PeBenito |
3f67f7 |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## The type of the process performing this action.
|
|
Chris PeBenito |
3f67f7 |
## </summary>
|
|
Chris PeBenito |
cca4a2 |
## </param>
|
|
Chris PeBenito |
cca4a2 |
#
|
|
Chris PeBenito |
cca4a2 |
interface(`ntpd_rw_shm',`
|
|
Chris PeBenito |
3f67f7 |
gen_require(`
|
|
Chris PeBenito |
3f67f7 |
type ntpd_t, ntpd_tmpfs_t;
|
|
Chris PeBenito |
3f67f7 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
3f67f7 |
allow $1 ntpd_t:shm rw_shm_perms;
|
|
Chris PeBenito |
3f67f7 |
list_dirs_pattern($1, ntpd_tmpfs_t, ntpd_tmpfs_t)
|
|
Chris PeBenito |
3f67f7 |
rw_files_pattern($1, ntpd_tmpfs_t, ntpd_tmpfs_t)
|
|
Chris PeBenito |
3f67f7 |
read_lnk_files_pattern($1, ntpd_tmpfs_t, ntpd_tmpfs_t)
|
|
Chris PeBenito |
3f67f7 |
fs_search_tmpfs($1)
|
|
Chris PeBenito |
cca4a2 |
')
|
|
Chris PeBenito |
cca4a2 |
|
|
Chris PeBenito |
cca4a2 |
########################################
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## All of the rules required to administrate
|
|
Chris PeBenito |
e87221 |
## an ntp 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 ntp domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`ntp_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type ntpd_t, ntpd_tmp_t, ntpd_log_t;
|
|
Chris PeBenito |
aa7c46 |
type ntpd_key_t, ntpd_var_run_t;
|
|
Chris PeBenito |
e87221 |
type ntpd_initrc_exec_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 ntpd_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, ntpd_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, ntpd_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 ntpd_initrc_exec_t system_r;
|
|
Chris PeBenito |
e87221 |
allow $2 system_r;
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ntpd_key_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
logging_list_logs($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ntpd_log_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_tmp($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ntpd_tmp_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_pids($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, ntpd_var_run_t)
|
|
Chris PeBenito |
e87221 |
')
|