diff options
Diffstat (limited to 'policy/modules/contrib/clockspeed.if')
-rw-r--r-- | policy/modules/contrib/clockspeed.if | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/policy/modules/contrib/clockspeed.if b/policy/modules/contrib/clockspeed.if new file mode 100644 index 000000000..07976176c --- /dev/null +++ b/policy/modules/contrib/clockspeed.if @@ -0,0 +1,44 @@ +## <summary>Clockspeed simple network time protocol client</summary> + +######################################## +## <summary> +## Execute clockspeed utilities in the clockspeed_cli domain. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +# +interface(`clockspeed_domtrans_cli',` + gen_require(` + type clockspeed_cli_t, clockspeed_cli_exec_t; + ') + + domtrans_pattern($1, clockspeed_cli_exec_t, clockspeed_cli_t) +') + +######################################## +## <summary> +## Allow the specified role the clockspeed_cli domain. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +## <param name="role"> +## <summary> +## Role allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`clockspeed_run_cli',` + gen_require(` + type clockspeed_cli_t; + ') + + role $2 types clockspeed_cli_t; + clockspeed_domtrans_cli($1) +') |