Bug 1382397
Summary: | write_logs option is not correctly handled | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ondrej Moriš <omoris> | |
Component: | audit | Assignee: | Steve Grubb <sgrubb> | |
Status: | CLOSED ERRATA | QA Contact: | Ondrej Moriš <omoris> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 7.3 | CC: | aperotti, dbodnarc, mgrepl, mmatsuya, omoris, rahranja | |
Target Milestone: | rc | Keywords: | Regression, ZStream | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
URL: | https://fedorahosted.org/audit/changeset/1399 | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1415724 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-01 20:53:38 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: | 1415724 |
Description
Ondrej Moriš
2016-10-06 14:43:41 UTC
Fixed in upstream commit 1399. If this gets fixed on z-stream, we also want commit 1421. The file audit-2.7-write-log.patch has been applied to the srpm. Successfully reproduced and verified. OLD (audit-2.6.5-3.el7) ======================= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: log_format = NOLOG :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Command 'sed -i 's/^log_format.*/log_format = NOLOG/' /etc/audit/auditd.conf' (Expected 0, got 0) :: [ FAIL ] :: Command 'service auditd start && sleep 5' (Expected 0, got 1) :: [ FAIL ] :: Command 'service auditd status' (Expected 0, got 3) :: [ PASS ] :: Command 'auditctl -D' (Expected 0, got 0) :: [ PASS ] :: Command 'auditctl -a always,exit -W /tmp/tmp.WZcb8r1jmf -k NOLOG' (Expected 0, got 0) :: [ PASS ] :: Command 'cat /tmp/tmp.WZcb8r1jmf' (Expected 0, got 0) :: [ PASS ] :: Command 'ausearch -ts 06:45:47 -m SYSCALL -k NOLOG --raw' (Expected 1, got 1) :: [ PASS ] :: Command 'auditctl -D' (Expected 0, got 0) :: [ PASS ] :: Command 'service auditd stop && sleep 5' (Expected 0, got 0) :: [ LOG ] :: Duration: 5s :: [ LOG ] :: Assertions: 7 good, 2 bad :: [ FAIL ] :: RESULT: log_format = NOLOG NEW (audit-2.7.6-1.el7) ======================= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: log_format = NOLOG :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Command 'sed -i 's/^log_format.*/log_format = NOLOG/' /etc/audit/auditd.conf' (Expected 0, got 0) :: [ PASS ] :: Command 'service auditd start && sleep 5' (Expected 0, got 0) :: [ PASS ] :: Command 'service auditd status' (Expected 0, got 0) :: [ PASS ] :: Command 'auditctl -D' (Expected 0, got 0) :: [ PASS ] :: Command 'auditctl -a always,exit -W /tmp/tmp.dsa2Na7XDn -k NOLOG' (Expected 0, got 0) :: [ PASS ] :: Command 'cat /tmp/tmp.dsa2Na7XDn' (Expected 0, got 0) :: [ PASS ] :: Command 'ausearch -ts 06:45:35 -m SYSCALL -k NOLOG --raw' (Expected 1, got 1) :: [ PASS ] :: Command 'auditctl -D' (Expected 0, got 0) :: [ PASS ] :: Command 'service auditd stop && sleep 5' (Expected 0, got 0) :: [ LOG ] :: Duration: 11s :: [ LOG ] :: Assertions: 9 good, 0 bad :: [ PASS ] :: RESULT: log_format = NOLOG More details can be found in CR##15626918. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:2008 |