Bug 1005202
Summary: | running "ausearch -m avc,user_avc -ts today" over ssh gets stuck | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Martin Pavlik <mpavlik> | ||||||
Component: | audit | Assignee: | Steve Grubb <sgrubb> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.5 | CC: | bmr, fweimer, sbonazzo | ||||||
Target Milestone: | rc | ||||||||
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-11-21 11:13:16 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: | 1010472, 1032706 | ||||||||
Attachments: |
|
Description
Martin Pavlik
2013-09-06 12:38:36 UTC
I have no idea why it would get stuck. It uses printf to write out the findings. Maybe strace would help locate the problem? Created attachment 795507 [details]
strace
Thanks for the strace. It shows the client end waiting for something. What I am curious about is what ausearch is doing. If this is still reproducable, could you get an strace of ausearch? Thanks. Created attachment 798111 [details]
strace_ausearch
If it may help, ssh -t seems to solve the issue. In https://bugzilla.redhat.com/show_bug.cgi?id=1010472 Derrick Ornelas says: The issue appears to be that the ausearch command requires a controlling TTY(pty), and hangs indefinitely without access to one. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. Florian pointed out in bug 1032706 that this is actually expected behaviour when stdin is a pipe: > ausearch doesn't need a TTY, it alters behavior if the input is a pipe. > This is documented behavior, mentioned in the manpage: > > --input-logs > Use the log file location from auditd.conf as input for searchâ > ing. This is needed if you are using ausearch from a cron job. And reading the log from stdin is mentioned in the opening paragraph of the man pages for ausearch and aureport (which has the same logic): "The ausearch utility can also take input from stdin as long as the input is the raw log data." Seems this is NOTABUG. |