Bug 688664
Summary: | Auditd disk_error_action tries to execute a program when the SYSLOG action was chosen | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Eduard Benes <ebenes> |
Component: | audit | Assignee: | Steve Grubb <sgrubb> |
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.1 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | audit-2.1-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
A value of 'syslog' for the 'disk_error_action' parameter in 'auditd.conf' instructs auditd to issue a warning to syslog if an error is encountered when writing audit events to disk. If 'disk_error_action' was set to 'syslog', auditd always attempted to exec() a child process. Consequently, if a disk error was encountered (ie. a disk full error), auditd would attempt to exec() a null child process, and logging would not resume after the disk error was reported to syslog. In this update the child process is not called when the 'syslog' option is used, and logging continues as expected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 13:55:40 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 584498, 682670, 846801, 846802 |
Description
Eduard Benes
2011-03-17 16:33:45 UTC
Client side message in /var/log/messages for syslog action when server signalling low disk space could be improved. Currently it logs something like this: <snip> Mar 17 09:06:47 x86-64-v07 audisp-remote: remote disk low, </snip> After reviewing the code, I have a couple things to report. The syslog option does not suspend logging. Choosing it means that you get a syslog message each failure. That said, the above log shows a real bug. It says that it cannot exec (null). That means that it was calling the safe_exec function which forks and tries to execute a child process and fails because the program is NULL. This seems to be what is messing things up. (In reply to comment #2) > After reviewing the code, I have a couple things to report. The syslog option > does not suspend logging. Choosing it means that you get a syslog message each > failure. Yes, I should have used word "return" instead of resume in the bug report. Though there might be a possible issue with action SUSPEND in audisp-remote plugin is that it does not resume on SIGUSR2 e.g "service auditd resume", unless there is a different procedure for resuming the plugin. Could you please have a look into that? (I haven't tried to send it directly to the plugin yet, e.g kill -S usr2 audisp-remote). > That said, the above log shows a real bug. It says that it cannot exec > (null). That means that it was calling the safe_exec function which forks and > tries to execute a child process and fails because the program is NULL. This > seems to be what is messing things up. audit-2.1-1.el6 was build to resolve this problem. (In reply to comment #3) > (In reply to comment #2) > > After reviewing the code, I have a couple things to report. The syslog option > > does not suspend logging. Choosing it means that you get a syslog message each > > failure. > > Yes, I should have used word "return" instead of resume in the bug report. > > Though there might be a possible issue with action SUSPEND in audisp-remote > plugin is that it does not resume on SIGUSR2 e.g "service auditd resume", > unless there is a different procedure for resuming the plugin. Could you please > have a look into that? (I haven't tried to send it directly to the plugin yet, > e.g kill -S usr2 audisp-remote). The audisp-remote plugin process will resume logging when it received a SIGUSR2 signal directly. The auditd/audispd does not send SIGUSR2 signals to running registered plugins. 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. http://rhn.redhat.com/errata/RHBA-2011-0653.html |