Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 208834 - auditd fails to restart after log rotation with num_logs=0
auditd fails to restart after log rotation with num_logs=0
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: audit (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Grubb
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-10-02 06:15 EDT by Bastien Nocera
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: 5.0.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-19 10:50:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
auditd.fix (560 bytes, patch)
2006-10-02 06:18 EDT, Bastien Nocera
no flags Details | Diff

  None (edit)
Description Bastien Nocera 2006-10-02 06:15:25 EDT

1. Set num_logs=0 in /etc/audit/auditd.conf
2. Restart auditd
3. run "killall -USR1 auditd" to attempt log rotation
4. Try to restart auditd:
Sep 28 11:38:18 test auditd: /var/log/audit/audit.log permissions should be 0640
Sep 28 11:38:18 test auditd: The audit daemon is exiting.

The log rotation code changes the permissions on the log file before trying to
move it. It shouldn't do that as it won't rotate anything with num_logs=0
Comment 1 Bastien Nocera 2006-10-02 06:18:30 EDT
Created attachment 137532 [details]

Patch from srinivds@in.ibm.com to fix the problem
Will probably need indentation changes
Comment 2 Steve Grubb 2006-10-02 09:01:30 EDT
Will review problem and fix in 1.2.9. There is probably a more general solution
needed since it should never enter the rotate code if num_logs == 0.
Comment 3 Steve Grubb 2006-10-17 10:13:24 EDT
audit-1.2.8-2 was built to solve this problem. Thanks for reporting it.
Comment 4 RHEL Product and Program Management 2006-10-26 15:40:19 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
Comment 7 James Laska 2006-12-14 08:09:14 EST
Thank you for the detailed test case.  Marking as VERIFIED
Comment 8 Jay Turner 2006-12-19 10:50:33 EST
audit-1.3.1-1.el5 included in 20061218.1 trees.

Note You need to log in before you can comment on or make changes to this bug.