From fdc38c861f20b8963c0b86d472b6ed6d285eb24dbff858fd1a0d97e6ab90007c Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Wed, 11 Aug 2021 12:31:49 +0000 Subject: [PATCH] Accepting request 911222 from home:lnussel:branches:security:SELinux - Fix quoting in postInstall macro OBS-URL: https://build.opensuse.org/request/show/911222 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=114 --- selinux-policy.changes | 5 +++++ selinux-policy.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/selinux-policy.changes b/selinux-policy.changes index a097bed..957ec61 100644 --- a/selinux-policy.changes +++ b/selinux-policy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 10 08:31:16 UTC 2021 - Ludwig Nussel + +- Fix quoting in postInstall macro + ------------------------------------------------------------------- Fri Jul 16 07:11:57 UTC 2021 - Johannes Segitz diff --git a/selinux-policy.spec b/selinux-policy.spec index 413e576..86cca83 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -304,9 +304,9 @@ fi; %define postInstall() \ . %{_sysconfdir}/selinux/config; \ -if [ -e %{_sysconfdir}/selinux/%%2/.rebuild ]; then \ - rm %{_sysconfdir}/selinux/%%2/.rebuild; \ - /usr/sbin/semodule -B -n -s %%2; \ +if [ -e %{_sysconfdir}/selinux/%2/.rebuild ]; then \ + rm %{_sysconfdir}/selinux/%2/.rebuild; \ + /usr/sbin/semodule -B -n -s %2; \ fi; \ if [ -n "${TRANSACTIONAL_UPDATE}" ]; then \ touch /etc/selinux/.autorelabel \