From 288f0208d56078f422b8e3450d6cb8d23042b5c1 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 26 Jan 2012 00:08:11 +0100 Subject: [PATCH] fixed SELinux restorecon invocation --- clamav.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clamav.spec b/clamav.spec index ca7a1e5..db08523 100644 --- a/clamav.spec +++ b/clamav.spec @@ -642,7 +642,7 @@ test -e %freshclamlog || { touch %freshclamlog %__chmod 0664 %freshclamlog %__chown root:%username %freshclamlog - ! -x /sbin/restorecon || /sbin/restorecon %freshclamlog + ! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog } @@ -661,7 +661,7 @@ test -e %milterlog || { touch %milterlog chmod 0620 %milterlog chown root:%milteruser %milterlog - ! -x /sbin/restorecon || /sbin/restorecon %milterlog + ! test -x /sbin/restorecon || /sbin/restorecon %milterlog } %{?with_systemd:/bin/systemd-tmpfiles --create %_sysconfdir/tmpfiles.d/clamav-milter.conf || :}} @@ -854,6 +854,9 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || : %changelog +* Wed Jan 25 2012 Enrico Scholz +- fixed SELinux restorecon invocation + * Sat Jan 21 2012 Enrico Scholz - 0.97.3-1703 - rewrote clamav-notify-servers to be init system neutral - set PrivateTmp systemd option (#782488)