From 998db1551fcb7e91b9005159df1378f416bb9de7 Mon Sep 17 00:00:00 2001 From: Christian Kaenzig Date: Wed, 13 Aug 2014 17:12:49 +0200 Subject: 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. --- manifests/config.pp | 1 + 1 file changed, 1 insertion(+) 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'], } -- cgit v1.2.3