diff options
author | Christian Kaenzig <christian.kaenzig@camptocamp.com> | 2014-08-13 17:12:49 +0200 |
---|---|---|
committer | Christian Kaenzig <christian.kaenzig@camptocamp.com> | 2014-08-13 17:12:49 +0200 |
commit | 998db1551fcb7e91b9005159df1378f416bb9de7 (patch) | |
tree | b4ab66740e4670cd56d2821736a76df72a2ae7a6 | |
parent | 3072553c9543b5c7769c54ed251bdfcce2967ce9 (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.pp | 1 |
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'], } |