From 63e5ca8b8190466c90f28249bbbae32be9bd2126 Mon Sep 17 00:00:00 2001 From: Bryan Jen Date: Fri, 2 Dec 2016 20:18:14 +0000 Subject: [PATCH] Fixes SELinux compatibility with EL6 --- manifests/linux/redhat.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/linux/redhat.pp b/manifests/linux/redhat.pp index a6bfe83..b658c55 100644 --- a/manifests/linux/redhat.pp +++ b/manifests/linux/redhat.pp @@ -76,12 +76,13 @@ class firewall::linux::redhat ( #lint:ignore:quoted_booleans 'true',true: { case $::operatingsystemrelease { - /^(6|7)\..*/: { + /^7\..*/: { case $::operatingsystem { 'CentOS': { File["/etc/sysconfig/${service_name}"] { seluser => 'unconfined_u', seltype => 'system_conf_t' } } default : { File["/etc/sysconfig/${service_name}"] { seluser => 'unconfined_u', seltype => 'etc_t' } } } } + /^6\..*/: { File["/etc/sysconfig/${service_name}"] { seluser => 'unconfined_u', seltype => 'system_conf_t' } } default: { File["/etc/sysconfig/${service_name}"] { seluser => 'system_u', seltype => 'system_conf_t' } } } } -- 2.45.2