selinux-policy/policy/modules/services/ntp.if

56 lines
1.0 KiB
Plaintext
Raw Normal View History

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">
## <summary>
2005-09-15 21:03:29 +00:00
## N/A
## </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">
## <summary>
2005-09-05 16:47:19 +00:00
## The type of the process performing this action.
## </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">
## <summary>
2005-09-05 16:47:19 +00:00
## The type of the process performing this action.
## </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
')