2007-02-16 23:01:42 +00:00
|
|
|
## <summary>Time zone updater</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute a domain transition to run tzdata.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed to transition.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`tzdata_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type tzdata_t, tzdata_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, tzdata_exec_t, tzdata_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the tzdata program in the tzdata domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
|
|
|
## The role to allow the tzdata domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
|
|
|
interface(`tzdata_run',`
|
|
|
|
gen_require(`
|
|
|
|
type tzdata_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
tzdata_domtrans($1)
|
|
|
|
role $2 types tzdata_t;
|
|
|
|
')
|