Bug 983483
Summary: | audisp-remote terminates immediately with a non-empty queue | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ondrej Moriš <omoris> |
Component: | audit | Assignee: | Steve Grubb <sgrubb> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 | ||
Target Milestone: | beta | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-16 22:52:22 UTC | Type: | Bug |
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: | 717785 |
Description
Ondrej Moriš
2013-07-11 10:03:12 UTC
I'm not entirely sure that's a proper test for audisp-remote. What's happening is bash tears down the pipes between the processes as soon as the echo completes. When this happens it triggers the select and then it sees a term signal was received. It never had a chance to send the event. In real life, we have to worry about systemd shutting down the system. It doesn't give much time until it sends sigkill to everything. What we do is just stop under the assumption that we can process any outstanding events next time, but we need to exit so that audispd can exit so that auditd can exit. One of those might finish first causing more fun. If you really want to test like that, you might be better off just making a shell script that keeps stdout open a bit longer, like: #!/bin/sh echo $1 sleep 2 then ./slow-echo "ABCD" | audisp-remote Thanks Steve for your explanation and hint, both are very helpful and solves the problem. However, a new issues was revealed afterwards (Bug 985142). Since it was shown that this is not a bug, I am closing this bugzilla. |