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>
|
|
|
|
## <param name="domain" optional="true">
|
|
|
|
## N/A
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_stub',`
|
|
|
|
gen_require(`ntp.te',`
|
|
|
|
type ntpd_t;
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2005-09-05 16:47:19 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute ntp server in the ntpd domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type ntpd_t, ntpd_exec_t;
|
|
|
|
class process sigchld;
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
|
|
|
')
|
|
|
|
|
|
|
|
corecmd_search_sbin($1)
|
|
|
|
domain_auto_trans($1,ntpd_exec_t,ntpd_t)
|
|
|
|
|
|
|
|
allow $1 ntpd_t:fd use;
|
|
|
|
allow ntpd_t $1:fd use;
|
|
|
|
allow ntpd_t $1:fifo_file rw_file_perms;
|
|
|
|
allow ntpd_t $1:process sigchld;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute ntp server in the ntpd domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ntp_domtrans_ntpdate',`
|
|
|
|
gen_require(`
|
|
|
|
type ntpd_t, ntpdate_exec_t;
|
|
|
|
class process sigchld;
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
|
|
|
')
|
|
|
|
|
|
|
|
corecmd_search_sbin($1)
|
|
|
|
domain_auto_trans($1,ntpdate_exec_t,ntpd_t)
|
|
|
|
|
|
|
|
allow $1 ntpd_t:fd use;
|
|
|
|
allow ntpd_t $1:fd use;
|
|
|
|
allow ntpd_t $1:fifo_file rw_file_perms;
|
|
|
|
allow ntpd_t $1:process sigchld;
|
|
|
|
')
|