From: Tobias Urdin Date: Tue, 2 May 2023 13:15:52 +0000 (+0000) Subject: Fix SELinux context on newer CentOS X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ffda971cf288b79c1a83a195e17ac354ce0a741e;p=puppet-modules%2Fpuppetlabs-firewall.git Fix SELinux context on newer CentOS Fix the SELinux contexts for CentOS Stream 8 and CentOS Stream 9. --- diff --git a/manifests/linux/redhat.pp b/manifests/linux/redhat.pp index 0231146..c853ded 100644 --- a/manifests/linux/redhat.pp +++ b/manifests/linux/redhat.pp @@ -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'