From 488e7b1b79f1cb6f774b86ec97d8473396de86c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 11 Jul 2024 15:48:24 +0200 Subject: [PATCH] Also relabel files under /usr/sbin I forgot that this needs to apply to pre-sbin-merge systems too. Let's cover those too. Related: RHEL-54303 --- selinux-policy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 65b41e37..269498ca 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -289,7 +289,7 @@ fi; \ # In some scenarios, /usr/bin/httpd is labelled incorrectly after sbin merge. \ # Relabel all files under /usr/bin, in case they got installed before policy \ # was updated and the labels were incorrect. \ -%{_sbindir}/restorecon -R /usr/bin \ +%{_sbindir}/restorecon -R /usr/bin /usr/sbin \ if %{_sbindir}/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null;then \ continue; \ fi;