set correct SELinux context for logfiles generated in %post (#754555)

This commit is contained in:
Enrico Scholz 2012-01-08 11:40:25 +01:00
parent 561d35c30e
commit 57625932d3
1 changed files with 5 additions and 0 deletions

View File

@ -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@informatik.tu-chemnitz.de>
- set correct SELinux context for logfiles generated in %%post (#754555)
* Tue Oct 18 2011 Nick Bebout <nb@fedoraproject.org> - 0.97.3-1700
- updated to 0.97.3
- CVE-2011-3627 clamav: Recursion level crash fixed in v0.97.3