[clamav/f16] added trigger to fix SELinux contexts of logfiles created by old packages
ensc
ensc at fedoraproject.org
Sun Jan 29 10:24:01 UTC 2012
commit 6063e2b6a25c3779bb5dde6babb18957481b9084
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Sun Jan 29 11:15:56 2012 +0100
added trigger to fix SELinux contexts of logfiles created by old
packages
clamav.spec | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 4ed8909..381326d 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -621,6 +621,9 @@ test -e %freshclamlog || {
! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog
}
+%triggerin update -- %name-update < 0.97.3.1602
+! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog &>/dev/null || :
+
%triggerin milter -- clamav-scanner
# Add the milteruser to the scanuser group; this is required when
@@ -645,6 +648,9 @@ test -e %milterlog || {
%__fe_userdel %milteruser &>/dev/null || :
%__fe_groupdel %milteruser &>/dev/null || :
+%triggerin milter -- %name-milter < 0.97.3.1602
+! test -x /sbin/restorecon || /sbin/restorecon %milterlog &>/dev/null || :
+
%post milter-sysvinit
/sbin/chkconfig --add clamav-milter
@@ -827,6 +833,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
* 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)
More information about the scm-commits
mailing list