[clamav/f16] set correct SELinux context for logfiles generated in %post (#754555)
ensc
ensc at fedoraproject.org
Sun Jan 8 12:03:04 UTC 2012
commit b7dfb974f746529557e6fb1f95fda3bfe11d40a9
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Sun Jan 8 11:40:25 2012 +0100
set correct SELinux context for logfiles generated in %post (#754555)
clamav.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index ea4e63d..9447001 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -614,6 +614,7 @@ test -e %freshclamlog || {
touch %freshclamlog
%__chmod 0664 %freshclamlog
%__chown root:%username %freshclamlog
+ ! -x /sbin/restorecon || /sbin/restorecon %freshclamlog
}
@@ -632,6 +633,7 @@ test -e %milterlog || {
touch %milterlog
chmod 0620 %milterlog
chown root:%milteruser %milterlog
+ ! -x /sbin/restorecon || /sbin/restorecon %milterlog
}
%postun milter
@@ -818,6 +820,9 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
%changelog
+* Sun Jan 8 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
+- set correct SELinux context for logfiles generated in %%post (#754555)
+
* Thu Oct 27 2011 Nick Bebout <nb at fedoraproject.org> - 0.97.3-1600
- updated to 0.97.3
- CVE-2011-3627 Recursion level crash fixed in v0.97.3
More information about the scm-commits
mailing list