[clamav] added trigger to fix SELinux contexts of logfiles created by old packages

ensc ensc at fedoraproject.org
Sun Jan 29 10:23:52 UTC 2012


commit 57ac72ac35cd124bb61cb946f839d5c6b42e213a
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date:   Sun Jan 29 11:23:44 2012 +0100

    added trigger to fix SELinux contexts of logfiles created by old
    packages

 clamav.spec |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 4b2ab60..00e2527 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -645,6 +645,10 @@ test -e %freshclamlog || {
 	! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog
 }
 
+%triggerin update -- %name-update < 0.97.3.1704
+# remove me after F19
+! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog &>/dev/null || :
+
 
 %triggerin milter -- clamav-scanner
 # Add the milteruser to the scanuser group; this is required when
@@ -669,6 +673,10 @@ test -e %milterlog || {
 %__fe_userdel  %milteruser &>/dev/null || :
 %__fe_groupdel %milteruser &>/dev/null || :
 
+%triggerin milter -- %name-milter < 0.97.3.1704
+# remove me after F19
+! test -x /sbin/restorecon || /sbin/restorecon %milterlog &>/dev/null || :
+
 
 %post milter-sysvinit
 /sbin/chkconfig --add clamav-milter
@@ -856,6 +864,8 @@ 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
+- added trigger to fix SELinux contexts of logfiles created by old
+  packages
 
 * Sat Jan 21 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.97.3-1703
 - rewrote clamav-notify-servers to be init system neutral


More information about the scm-commits mailing list