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 17de1b
## <param name="domain" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	N/A
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 17de1b
	corecmd_search_sbin($1)
Chris PeBenito 17de1b
	domain_auto_trans($1,ntpd_exec_t,ntpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 ntpd_t:fd use;
Chris PeBenito 17de1b
	allow ntpd_t $1:fd use;
Chris PeBenito 17de1b
	allow ntpd_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow ntpd_t $1:process sigchld;
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 17de1b
	corecmd_search_sbin($1)
Chris PeBenito 17de1b
	domain_auto_trans($1,ntpdate_exec_t,ntpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 ntpd_t:fd use;
Chris PeBenito 17de1b
	allow ntpd_t $1:fd use;
Chris PeBenito 17de1b
	allow ntpd_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow ntpd_t $1:process sigchld;
Chris PeBenito 17de1b
')