2005-09-05 16:47:19 +00:00
|
|
|
## <summary>Network time protocol daemon</summary>
|
|
|
|
|
2005-09-15 21:03:29 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## NTP stub interface. No access allowed.
|
|
|
|
## </summary>
|
2008-06-24 14:43:47 +00:00
|
|
|
## <param name="domain" unused="true">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2008-06-24 14:43:47 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_stub',`
|
2005-09-20 18:15:35 +00:00
|
|
|
gen_require(`
|
2005-09-15 21:03:29 +00:00
|
|
|
type ntpd_t;
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2005-09-05 16:47:19 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute ntp server in the ntpd domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type ntpd_t, ntpd_exec_t;
|
|
|
|
')
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1,ntpd_exec_t,ntpd_t)
|
2005-09-05 16:47:19 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute ntp server in the ntpd domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-05 16:47:19 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_domtrans_ntpdate',`
|
|
|
|
gen_require(`
|
|
|
|
type ntpd_t, ntpdate_exec_t;
|
|
|
|
')
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1,ntpdate_exec_t,ntpd_t)
|
2005-09-05 16:47:19 +00:00
|
|
|
')
|