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 |
b11a75 |
## Execute ntp server in the ntpd domain.
|
|
Chris PeBenito |
b11a75 |
## </summary>
|
|
Chris PeBenito |
b11a75 |
## <param name="domain">
|
|
Chris PeBenito |
b11a75 |
## The type of the process performing this action.
|
|
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 |
class process sigchld;
|
|
Chris PeBenito |
b11a75 |
class fd use;
|
|
Chris PeBenito |
b11a75 |
class fifo_file rw_file_perms;
|
|
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 |
b11a75 |
## The type of the process performing this action.
|
|
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 |
class process sigchld;
|
|
Chris PeBenito |
b11a75 |
class fd use;
|
|
Chris PeBenito |
b11a75 |
class fifo_file rw_file_perms;
|
|
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 |
')
|