Chris PeBenito 6b19be
## <summary>Time zone updater</summary>
Chris PeBenito 6b19be
Chris PeBenito 6b19be
########################################
Chris PeBenito 6b19be
## <summary>
Chris PeBenito 6b19be
##	Execute a domain transition to run tzdata.
Chris PeBenito 6b19be
## </summary>
Chris PeBenito 6b19be
## <param name="domain">
Chris PeBenito 6b19be
## <summary>
Chris PeBenito 6b19be
##	Domain allowed to transition.
Chris PeBenito 6b19be
## </summary>
Chris PeBenito 6b19be
## </param>
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
interface(`tzdata_domtrans',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 6b19be
		type tzdata_t, tzdata_exec_t;
Chris PeBenito 6b19be
	')
Chris PeBenito 6b19be
Chris PeBenito 6b19be
	domtrans_pattern($1,tzdata_exec_t,tzdata_t)
Chris PeBenito 6b19be
')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
########################################
Chris PeBenito 350b6a
## <summary>
Chris PeBenito 350b6a
##	Execute the tzdata program in the tzdata domain.
Chris PeBenito 350b6a
## </summary>
Chris PeBenito 350b6a
## <param name="domain">
Chris PeBenito 350b6a
##	<summary>
Chris PeBenito 350b6a
##	Domain allowed access.
Chris PeBenito 350b6a
##	</summary>
Chris PeBenito 350b6a
## </param>
Chris PeBenito 350b6a
## <param name="role">
Chris PeBenito 350b6a
##	<summary>
Chris PeBenito 350b6a
##	The role to allow the tzdata domain.
Chris PeBenito 350b6a
##	</summary>
Chris PeBenito 350b6a
## </param>
Chris PeBenito 350b6a
## <param name="terminal">
Chris PeBenito 350b6a
##	<summary>
Chris PeBenito 350b6a
##	The type of the terminal allow the tzdata domain to use.
Chris PeBenito 350b6a
##	</summary>
Chris PeBenito 350b6a
## </param>
Chris PeBenito 350b6a
## <rolecap/>
Chris PeBenito 350b6a
#
Chris PeBenito 350b6a
interface(`tzdata_run',`
Chris PeBenito 350b6a
	gen_require(`
Chris PeBenito 350b6a
		type tzdata_t;
Chris PeBenito 350b6a
	')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
	tzdata_domtrans($1)
Chris PeBenito 350b6a
	role $2 types tzdata_t;
Chris PeBenito 350b6a
	allow tzdata_t $3:chr_file rw_term_perms;
Chris PeBenito 350b6a
')