Bug Fix Advisory logrotate bug fix and enhancement update

Advisory: RHBA-2008:0703-4
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2008-07-24
Last updated on: 2008-07-24
Affected Products: Red Hat Desktop (v. 4)
Red Hat Enterprise Linux AS (v. 4)
Red Hat Enterprise Linux ES (v. 4)
Red Hat Enterprise Linux WS (v. 4)
OVAL: N/A

Details

An updated logrotate package that fixes various bugs and adds an
enhancement is now available.

The logrotate utility simplifies the administration of multiple log files.
Logrotate allows for automatic rotation, compression, removal, and mailing
of log files.

This updated logrotate package includes fixes for the following bugs:

* encountering a configuration file ending with a taboo extension, such as
one ending with the tilde character ('~'), was reported as an error.

* logrotate would stop rotating logs when an error in reading the
configuration file occurred. logrotate has been made more robust when it
encounters errors in the configuration file.

* if a system was in SELinux enforcing mode, logrotate would assume that
all files had the necessary attributes, and would stop rotating files when
it encountered files without them.

* logrotate ignored pre/postrotating script arguments.

* using wildcards in taboo extension definitions was not supported.

* the missingok option was ignored when rotating a log specified with a
wildcard.

* a segmentation fault sometimes occurred due to incorrect handling of
configuration file syntax.

In addition, the following enhancement has been added to logrotate:

* logrotate in Red Hat Enterprise Linux 4 did not support the maxage and
dateext configuration parameters. Usage of these parameters has been
backported and is now available to users of Red Hat Enterprise Linux 4.

Users are advised to upgrade to this updated logrotate package, which
resolves these issues.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

Updated packages

Red Hat Desktop (v. 4)

SRPMS:
logrotate-3.7.1-10.RHEL4.src.rpm     674bf975902c7556ba62792d87742072
 
IA-32:
logrotate-3.7.1-10.RHEL4.i386.rpm     87d88d6663904f65531401d6431777da
 
x86_64:
logrotate-3.7.1-10.RHEL4.x86_64.rpm     2c7015dedb266f6792d74adb98e5cd21
 
Red Hat Enterprise Linux AS (v. 4)

SRPMS:
logrotate-3.7.1-10.RHEL4.src.rpm     674bf975902c7556ba62792d87742072
 
IA-32:
logrotate-3.7.1-10.RHEL4.i386.rpm     87d88d6663904f65531401d6431777da
 
IA-64:
logrotate-3.7.1-10.RHEL4.ia64.rpm     ccef9d16fd6d1d2008f1ea3f21a1cec2
 
PPC:
logrotate-3.7.1-10.RHEL4.ppc.rpm     1a9e19e5ee43685a708dd0fb34c5ee56
 
s390:
logrotate-3.7.1-10.RHEL4.s390.rpm     7f802bf8bc18201736e41023f147e97c
 
s390x:
logrotate-3.7.1-10.RHEL4.s390x.rpm     f1be4ca58422b529ece92d565074cf15
 
x86_64:
logrotate-3.7.1-10.RHEL4.x86_64.rpm     2c7015dedb266f6792d74adb98e5cd21
 
Red Hat Enterprise Linux ES (v. 4)

SRPMS:
logrotate-3.7.1-10.RHEL4.src.rpm     674bf975902c7556ba62792d87742072
 
IA-32:
logrotate-3.7.1-10.RHEL4.i386.rpm     87d88d6663904f65531401d6431777da
 
IA-64:
logrotate-3.7.1-10.RHEL4.ia64.rpm     ccef9d16fd6d1d2008f1ea3f21a1cec2
 
x86_64:
logrotate-3.7.1-10.RHEL4.x86_64.rpm     2c7015dedb266f6792d74adb98e5cd21
 
Red Hat Enterprise Linux WS (v. 4)

SRPMS:
logrotate-3.7.1-10.RHEL4.src.rpm     674bf975902c7556ba62792d87742072
 
IA-32:
logrotate-3.7.1-10.RHEL4.i386.rpm     87d88d6663904f65531401d6431777da
 
IA-64:
logrotate-3.7.1-10.RHEL4.ia64.rpm     ccef9d16fd6d1d2008f1ea3f21a1cec2
 
x86_64:
logrotate-3.7.1-10.RHEL4.x86_64.rpm     2c7015dedb266f6792d74adb98e5cd21
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

208538 - Logrotate missing dateext, maxage
211079 - Logrotate complains about taboo extensions
218388 - Logrotate should rotate logs even if there are some errors on the configuration
219767 - Logrotate can not rotate files on non-selinux filesystem
241766 - Logrotate ignores pre/postrotating scripts arguments
417771 - logrotate missingok option ignored if wildcards are used
440202 - logrotate causes segmentation faults


Keywords

logrotate


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/