Bug 1406525

Summary: ausearch with '--raw' parameter outputs separator
Product: Red Hat Enterprise Linux 7 Reporter: Steve Grubb <sgrubb>
Component: auditAssignee: Steve Grubb <sgrubb>
Status: CLOSED ERRATA QA Contact: Ondrej Moriš <omoris>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: adam.winberg, dwalsh, lvrabec, mgrepl, mmalik, omoris, plautrba, qe-baseos-security, sgrubb, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1406328 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: 1406328    
Bug Blocks:    

Comment 2 Ondrej Moriš 2017-04-27 10:18:25 UTC
Successfully reproduced and verified on all supported architectures.

OLD (audit-2.6.5-3.el7_3.1)
===========================
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: log_format = RAW
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'sed -i 's/^log_format.*/log_format = RAW/' /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.uG0AWPO2pe -k RAW' (Expected 0, got 0)
:: [   PASS   ] :: Command 'cat /tmp/tmp.uG0AWPO2pe' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ausearch -ts 11:46:19 -m SYSCALL -k RAW --raw' (Expected 0, got 0)
:: [   FAIL   ] :: Checking that separator is not displayed (Assert: "1D" should not equal "1D")
:: [   PASS   ] :: Command 'auditctl -D' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service auditd stop && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 12s
:: [   LOG    ] :: Assertions: 9 good, 1 bad
:: [   FAIL   ] :: RESULT: log_format = RAW

NEW (audit-2.7.6-1.el7)
=======================
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: log_format = RAW
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'sed -i 's/^log_format.*/log_format = RAW/' /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.2Bw48f4mxz -k RAW' (Expected 0, got 0)
:: [   PASS   ] :: Command 'cat /tmp/tmp.2Bw48f4mxz' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ausearch -ts 11:48:13 -m SYSCALL -k RAW --raw' (Expected 0, got 0)
:: [   PASS   ] :: Checking that separator is not displayed (Assert: "22" should not equal "1D")
:: [   PASS   ] :: Command 'auditctl -D' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service auditd stop && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 12s
:: [   LOG    ] :: Assertions: 10 good, 0 bad
:: [   PASS   ] :: RESULT: log_format = RAW

For more details please see TJ#1827282.

Comment 3 errata-xmlrpc 2017-08-01 20:53:38 UTC
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