Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/tzdata.if

48 lines
905 B
Text
Raw Normal View History

## <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;
')
corecmd_search_bin($1)
domtrans_pattern($1, tzdata_exec_t, tzdata_t)
')
########################################
## <summary>
## Execute tzdata in the tzdata domain,
## and allow the specified role
## the tzdata domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`tzdata_run',`
gen_require(`
attribute_role tzdata_roles;
')
tzdata_domtrans($1)
roleattribute $2 tzdata_roles;
')