Skip to contentSkip to conversation

Allow initrc_t to create /var/run/opendkim

PATCH New Luis Ressel 2 participants 2 messages Nov 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow initrc_t to create /var/run/opendkim

On Gentoo, /var/run/opendkim is created by the init system, therefore init_daemon_run_dir() is required, otherwise the directory would get a wrong label.

---
 policy/modules/contrib/dkim.te | 2 ++
 1 file changed, 2 insertions(+)
policy/modules/contrib/dkim.te +2 -0
index 1c3545d..2383e24 100644
@@ -31,3 +31,5 @@ dev_read_urand(dkim_milter_t)
 files_search_spool(dkim_milter_t)
 
 mta_read_config(dkim_milter_t)
+
+init_daemon_run_dir(dkim_milter_data_t, "opendkim")
Signature · 1 line
1.8.4.2
#1 lore raw

PATCH 1/1 Allow initrc_t to create /var/run/opendkim

Quoted 3 lines · Luis Ressel

On Gentoo, /var/run/opendkim is created by the init system, therefore init_daemon_run_dir() is required, otherwise the directory would get a wrong label.

Thank you! This was merged

Quoted 14 lines
---
 policy/modules/contrib/dkim.te | 2 ++
 1 file changed, 2 insertions(+)
policy/modules/contrib/dkim.te +2 -0
index 1c3545d..2383e24 100644
@@ -31,3 +31,5 @@ dev_read_urand(dkim_milter_t)
 files_search_spool(dkim_milter_t)
 
 mta_read_config(dkim_milter_t)
+
+init_daemon_run_dir(dkim_milter_data_t, "opendkim")