add dkim from stefan schulze frielinghaus.

This commit is contained in:
Chris PeBenito 2009-09-17 09:12:33 -04:00
parent 21b1d1096f
commit 5a6b1fe2b4
4 changed files with 43 additions and 0 deletions

View File

@ -10,6 +10,7 @@
- Add missing compatibility aliases for xdm_xserver*_t types.
- Added modules:
abrt (Dan Walsh)
dkim (Stefan Schulze Frielinghaus)
gitosis (Miroslav Grepl)
gnomeclock (Dan Walsh)
hddtemp (Dan Walsh)

View File

@ -0,0 +1,9 @@
/etc/mail/dkim-milter/keys(/.*)? gen_context(system_u:object_r:dkim_milter_private_key_t,s0)
/usr/sbin/dkim-filter -- gen_context(system_u:object_r:dkim_milter_exec_t,s0)
/var/db/dkim(/.*)? gen_context(system_u:object_r:dkim_milter_private_key_t,s0)
/var/run/dkim-filter(/.*)? gen_context(system_u:object_r:dkim_milter_data_t,s0)
/var/run/dkim-milter(/.*)? gen_context(system_u:object_r:dkim_milter_data_t,s0)
/var/run/dkim-milter\.pid -- gen_context(system_u:object_r:dkim_milter_data_t,s0)

View File

@ -0,0 +1 @@
## <summary>DomainKeys Identified Mail milter.</summary>

View File

@ -0,0 +1,32 @@
policy_module(dkim, 1.0.0)
########################################
#
# Declarations
#
milter_template(dkim)
# Type for the private key of dkim-filter
type dkim_milter_private_key_t;
files_type(dkim_milter_private_key_t)
########################################
#
# Local policy
#
allow dkim_milter_t self:capability { setgid setuid };
read_files_pattern(dkim_milter_t, dkim_milter_private_key_t, dkim_milter_private_key_t)
kernel_read_kernel_sysctls(dkim_milter_t)
dev_read_urand(dkim_milter_t)
files_read_etc_files(dkim_milter_t)
sysnet_dns_name_resolve(dkim_milter_t)
mta_read_config(dkim_milter_t)