[clamav/f16] fixed SELinux restorecon invocation
ensc
ensc at fedoraproject.org
Wed Jan 25 23:08:27 UTC 2012
commit b9b431ca57b6082066f586f0eb2b86b775a2434a
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Thu Jan 26 00:07:43 2012 +0100
fixed SELinux restorecon invocation
clamav.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 3327ef9..f8307e2 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -618,7 +618,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
}
@@ -637,7 +637,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 || :}}
@@ -825,6 +825,9 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
%changelog
+* Wed Jan 25 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
+- fixed SELinux restorecon invocation
+
* Sun Jan 8 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.97.3-1601
- set correct SELinux context for logfiles generated in %%post (#754555)
- create systemd tmpfiles in %%post
More information about the scm-commits
mailing list