diff options
author | Dominick Grift <dominick.grift@gmail.com> | 2012-09-28 12:49:33 +0200 |
---|---|---|
committer | Sven Vermeulen <sven.vermeulen@siphos.be> | 2012-09-28 19:47:56 +0200 |
commit | a7aab0b2275f1883f1908bb036520a7a6616a94f (patch) | |
tree | d86021486a20462442b7197eab8d29b593fb2f4d /policy/modules/contrib/dkim.if | |
parent | Changes to the djbdns policy module (diff) | |
download | hardened-refpolicy-a7aab0b2275f1883f1908bb036520a7a6616a94f.tar.gz hardened-refpolicy-a7aab0b2275f1883f1908bb036520a7a6616a94f.tar.bz2 hardened-refpolicy-a7aab0b2275f1883f1908bb036520a7a6616a94f.zip |
Changes to the dkim policy module
Add init script file
Add dkim_admin()
Module clean up
Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
Diffstat (limited to 'policy/modules/contrib/dkim.if')
-rw-r--r-- | policy/modules/contrib/dkim.if | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/policy/modules/contrib/dkim.if b/policy/modules/contrib/dkim.if index 32d108ad3..386e49414 100644 --- a/policy/modules/contrib/dkim.if +++ b/policy/modules/contrib/dkim.if @@ -1 +1,39 @@ ## <summary>DomainKeys Identified Mail milter.</summary> + +######################################## +## <summary> +## All of the rules required to +## administrate an dkim environment. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <param name="role"> +## <summary> +## Role allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`dkim_admin',` + gen_require(` + type dkim_milter_t, dkim_milter_initrc_exec_t, dkim_milter_private_key_t; + type dkim_milter_data_t; + ') + + allow $1 dkim_milter_t:process { ptrace signal_perms }; + ps_process_pattern($1, dkim_milter_t) + + init_labeled_script_domtrans($1, dkim_milter_initrc_exec_t) + domain_system_change_exemption($1) + role_transition $2 dkim_milter_initrc_exec_t system_r; + allow $2 system_r; + + files_search_etc($1) + admin_pattern($1, dkim_milter_private_key_t) + + files_search_pids($1) + admin_pattern($1, dkim_milter_data_t) +') |