]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Fix SELinux context on newer CentOS
authorTobias Urdin <tobias.urdin@binero.se>
Tue, 2 May 2023 13:15:52 +0000 (13:15 +0000)
committerTobias Urdin <tobias.urdin@binero.se>
Tue, 2 May 2023 13:15:52 +0000 (13:15 +0000)
Fix the SELinux contexts for CentOS Stream 8
and CentOS Stream 9.

manifests/linux/redhat.pp

index 023114637d3c05292a8c9a163d4ae9966d95750c..c853ded8f2896622eafe189c280b7386b94a3698 100644 (file)
@@ -151,6 +151,16 @@ class firewall::linux::redhat (
                 $seltype = 'system_conf_t'
               }
 
+              /^8\..*/: {
+                $seluser = 'system_u'
+                $seltype = 'etc_t'
+              }
+
+              /^9\..*/: {
+                $seluser = 'system_u'
+                $seltype = 'etc_t'
+              }
+
               default : {
                 $seluser = 'unconfined_u'
                 $seltype = 'etc_t'