]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Fixes SELinux compatibility with EL6
authorBryan Jen <bryan.jen@gmail.com>
Fri, 2 Dec 2016 20:18:14 +0000 (20:18 +0000)
committerBryan Jen <bryan.jen@gmail.com>
Fri, 2 Dec 2016 20:18:14 +0000 (20:18 +0000)
manifests/linux/redhat.pp

index a6bfe836cf4fac29561be205ee8c515e7f348277..b658c55cde5f83634de011e5b7c9bdce461c941b 100644 (file)
@@ -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' } }
         }
       }