From ffda971cf288b79c1a83a195e17ac354ce0a741e Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Tue, 2 May 2023 13:15:52 +0000 Subject: [PATCH] Fix SELinux context on newer CentOS Fix the SELinux contexts for CentOS Stream 8 and CentOS Stream 9. --- manifests/linux/redhat.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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' -- 2.45.2