Blame refpolicy/policy/modules/services/ntp.if
|
Chris PeBenito |
b11a75 |
## <summary>Network time protocol daemon</summary>
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
########################################
|
|
Chris PeBenito |
b11a75 |
## <summary>
|
|
Chris PeBenito |
98a8ea |
## NTP stub interface. No access allowed.
|
|
Chris PeBenito |
98a8ea |
## </summary>
|
|
Chris PeBenito |
98a8ea |
## <param name="domain" optional="true">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
98a8ea |
## N/A
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
98a8ea |
## </param>
|
|
Chris PeBenito |
98a8ea |
#
|
|
Chris PeBenito |
98a8ea |
interface(`ntp_stub',`
|
|
Chris PeBenito |
921055 |
gen_require(`
|
|
Chris PeBenito |
98a8ea |
type ntpd_t;
|
|
Chris PeBenito |
98a8ea |
')
|
|
Chris PeBenito |
98a8ea |
')
|
|
Chris PeBenito |
98a8ea |
|
|
Chris PeBenito |
98a8ea |
########################################
|
|
Chris PeBenito |
98a8ea |
## <summary>
|
|
Chris PeBenito |
b11a75 |
## Execute ntp server in the ntpd domain.
|
|
Chris PeBenito |
b11a75 |
## </summary>
|
|
Chris PeBenito |
b11a75 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
b11a75 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
b11a75 |
## </param>
|
|
Chris PeBenito |
b11a75 |
#
|
|
Chris PeBenito |
b11a75 |
interface(`ntp_domtrans',`
|
|
Chris PeBenito |
b11a75 |
gen_require(`
|
|
Chris PeBenito |
b11a75 |
type ntpd_t, ntpd_exec_t;
|
|
Chris PeBenito |
b11a75 |
')
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
b11a75 |
domain_auto_trans($1,ntpd_exec_t,ntpd_t)
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
allow $1 ntpd_t:fd use;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:fd use;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:process sigchld;
|
|
Chris PeBenito |
b11a75 |
')
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
########################################
|
|
Chris PeBenito |
b11a75 |
## <summary>
|
|
Chris PeBenito |
b11a75 |
## Execute ntp server in the ntpd domain.
|
|
Chris PeBenito |
b11a75 |
## </summary>
|
|
Chris PeBenito |
b11a75 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
b11a75 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
b11a75 |
## </param>
|
|
Chris PeBenito |
b11a75 |
#
|
|
Chris PeBenito |
b11a75 |
interface(`ntp_domtrans_ntpdate',`
|
|
Chris PeBenito |
b11a75 |
gen_require(`
|
|
Chris PeBenito |
b11a75 |
type ntpd_t, ntpdate_exec_t;
|
|
Chris PeBenito |
b11a75 |
')
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
b11a75 |
domain_auto_trans($1,ntpdate_exec_t,ntpd_t)
|
|
Chris PeBenito |
b11a75 |
|
|
Chris PeBenito |
b11a75 |
allow $1 ntpd_t:fd use;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:fd use;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
b11a75 |
allow ntpd_t $1:process sigchld;
|
|
Chris PeBenito |
b11a75 |
')
|