diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2015-02-12 14:19:28 +0100 |
---|---|---|
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2015-02-12 14:19:28 +0100 |
commit | c83304bb874640625e2f1c8c51406373acbd5773 (patch) | |
tree | 7e81127f8e7aae4f32591307e749ace266ee0dd9 /pdns.if | |
download | pdns-policy-master.tar.gz pdns-policy-master.tar.xz pdns-policy-master.zip |
Diffstat (limited to 'pdns.if')
-rw-r--r-- | pdns.if | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +## <summary>PowerDNS DNS server.</summary> + +######################################## +## <summary> +## Execute pdns in the pdns domain. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +# + +interface(`pdns_domtrans',` + gen_require(` + type pdns_t, pdns_exec_t; + ') + + domtrans_pattern($1, pdns_exec_t, pdns_t) +') + +######################################## +## <summary> +## Execute pdns_control in the pdns_control domain. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +# +interface(`pdns_domtrans_pdns_control',` + gen_require(` + type pdns_control_t, pdns_control_exec_t; + ') + + corecmd_search_bin($1) + domtrans_pattern($1, pdns_control_exec_t, pdns_control_t) +') + + |