From: Bryan Jen Date: Fri, 2 Dec 2016 20:18:14 +0000 (+0000) Subject: Fixes SELinux compatibility with EL6 X-Git-Tag: 1.8.2~13^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=63e5ca8b8190466c90f28249bbbae32be9bd2126;p=puppet-modules%2Fpuppetlabs-firewall.git Fixes SELinux compatibility with EL6 --- 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' } } } }