Red Hat Bugzilla – Bug 440036
logrotate doesn't prevent recursive includes
Last modified: 2010-03-31 03:48:28 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:188.8.131.52) Gecko/20080325 Fedora/184.108.40.206-1.fc8 Firefox/220.127.116.11
Description of problem:
During processing of a configuration file logrotate doesn't check whether the included file isn't the same. It leads to segmentation fault.
During processing of a configuration file logrotate doesn't check whether the included directory isn't the same as the directory of that file. It leads to logrotate infinite loop.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. write "include /etc/logrotate.d/syslog" on the 1st line of /etc/logrotate.d/syslog file
/etc/cron.daily/logrotate: line 3: 8634 Segmentation fault /usr/sbin/logrotate /etc/logrotate.conf
Some message which warns you about recursive includes and skipping the file.
The segmentation fault seems to have the same cause as in the bug #440202.
However the detection of recursive includes might be an useful feature.
Created attachment 401041 [details]
recursion depth counter backported from newer logrotate
fixed in logrotate-3.7.1-11.RHEL4
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.