## Time zone updater
########################################
##
## Execute a domain transition to run tzdata.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`tzdata_domtrans',`
gen_require(`
type tzdata_t, tzdata_exec_t;
')
domtrans_pattern($1,tzdata_exec_t,tzdata_t)
')
########################################
##
## Execute the tzdata program in the tzdata domain.
##
##
##
## Domain allowed access.
##
##
##
##
## The role to allow the tzdata domain.
##
##
##
##
## The type of the terminal allow the tzdata domain to use.
##
##
##
#
interface(`tzdata_run',`
gen_require(`
type tzdata_t;
')
tzdata_domtrans($1)
role $2 types tzdata_t;
allow tzdata_t $3:chr_file rw_term_perms;
')