]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(MODULES-6092) Set correct seluser for CentOS/RHEL 5.x
authorMichael Hall <mihall@primustel.ca>
Wed, 22 Nov 2017 15:37:30 +0000 (10:37 -0500)
committerMichael Hall <mihall@primustel.ca>
Wed, 22 Nov 2017 16:07:33 +0000 (11:07 -0500)
commitb678a8f6679bc09ce1c3ef41fba5447f787ae9d7
treed87904c03bb6881944729a2b8216990ddd2474d8
parente653c3f894844b49f67a3784ce2d981dcb56ca8f
(MODULES-6092) Set correct seluser for CentOS/RHEL 5.x

In 1.10.0, applying the puppetlabs-firewall module on CentOS/RHEL 5.x produces warnings:

Warning: Failed to set SELinux context unconfined_u:object_r:etc_t on /etc/sysconfig/iptables
Notice: /Stage[main]/Firewall::Linux::Redhat/File[/etc/sysconfig/iptables]/seluser: seluser changed 'system_u' to 'unconfined_u'
Warning: Failed to set SELinux context unconfined_u:object_r:etc_t on /etc/sysconfig/ip6tables
Notice: /Stage[main]/Firewall::Linux::Redhat/File[/etc/sysconfig/ip6tables]/seluser: seluser changed 'system_u' to 'unconfined_u'

This commit adds a case to set the correct seluser.
manifests/linux/redhat.pp