summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kaenzig <christian.kaenzig@camptocamp.com>2014-08-13 17:12:49 +0200
committerChristian Kaenzig <christian.kaenzig@camptocamp.com>2014-08-13 17:12:49 +0200
commit998db1551fcb7e91b9005159df1378f416bb9de7 (patch)
treeb4ab66740e4670cd56d2821736a76df72a2ae7a6
parent3072553c9543b5c7769c54ed251bdfcce2967ce9 (diff)
set spool_dir seltype to syslogd_var_lib_t
This type is necessary for rsyslogd to be able to write in spool_dir when selinux is enabled and enforcing. For some reason, this directory does not have the correct seltype in RHEL <= 7 and using disk queues or .state files does not work.
-rw-r--r--manifests/config.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index dbb37cc..813e784 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -43,6 +43,7 @@ class rsyslog::config {
ensure => directory,
owner => 'root',
group => $rsyslog::run_group,
+ seltype => 'syslogd_var_lib_t',
require => Class['rsyslog::install'],
notify => Class['rsyslog::service'],
}