- fix the selinux patch

This commit is contained in:
Tomas Smetana 2008-01-09 09:41:16 +00:00
parent 7b2ce26494
commit fcfb46ffad
2 changed files with 7 additions and 4 deletions

View File

@ -73,9 +73,9 @@ diff -up logrotate-3.7.6/logrotate.c.selinux logrotate-3.7.6/logrotate.c
+#ifdef WITH_SELINUX
+ if (selinux_enabled) {
+ setfscreatecon_raw(savedContext);
+ if (prev_context != NULL) {
+ freecon(prev_context);
+ prev_context = NULL;
+ if (savedContext != NULL) {
+ freecon(savedContext);
+ savedContext = NULL;
+ }
+ }
+#endif

View File

@ -1,7 +1,7 @@
Summary: Rotates, compresses, removes and mails system log files
Name: logrotate
Version: 3.7.6
Release: 2%{?dist}
Release: 2.1%{?dist}
License: GPL+
Group: System Environment/Base
# The source for this package was pulled from cvs.
@ -60,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
%changelog
* Wed Jan 09 2008 Tomas Smetana <tsmetana@redhat.com> 3.7.6-2.1
- fix the selinux patch
* Wed Jan 09 2008 Tomas Smetana <tsmetana@redhat.com> 3.7.6-2
- fix #427274 - logrotate fails to preserve SELinux file contexts
- fix #427661 - SELinux stops vsftpd from working correctly