Skip to content

Commit

Permalink
Merge pull request #664 from bmjen/fix-ci
Browse files Browse the repository at this point in the history
Fixes SELinux compatibility with EL6
  • Loading branch information
hunner committed Dec 2, 2016
2 parents c7dd699 + 63e5ca8 commit 5b2f1f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/linux/redhat.pp
Expand Up @@ -76,12 +76,13 @@
#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' } }
}
}
Expand Down

0 comments on commit 5b2f1f1

Please sign in to comment.