public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com, burn@swtf.dyndns.org
Subject: Re: ausearch question
Date: Mon, 07 Apr 2014 09:59:07 -0400	[thread overview]
Message-ID: <2668850.aNSDbdvmsr@x2> (raw)
In-Reply-To: <1396852174.23793.55.camel@swtf.swtf.dyndns.org>

On Monday, April 07, 2014 04:29:34 PM Burn Alting wrote:
> All,
> 
> I note when interpreting raw audit with the ausearch --interpret option,
> the code in src/ausearch-report.c:output_interpreted_node(), when
> parsing key value pairs which are not enclosed in double or single
> quotes, looks for embedded comma's in the value part and, if found,
> effectively terminates the value at the comma. This in effect, makes the
> data after the comma the start of the next key (if any). There are some
> exceptions in the code (audit_type == AUDIT_VIRT_MACHINE_ID,
> AUDIT_OBJ_PID, AUDIT_PATH and AUDIT_IPC).

I presume we are talking about this area of code:
https://fedorahosted.org/audit/browser/trunk/src/ausearch-report.c#L276

> What sort of input is this addressing?

The audit system has migrated its events slowly over time. The current code 
base can read/search/report/interpret audit events all the way back to about 
the 2004 time frame. So, sometimes you find things that are left over from long 
ago. But you might need this legacy support if the tools are on an aggregating 
server.


> Are there examples?

type=USER_ACCT msg=audit(1223987805.696:8): user pid=4885 uid=0 
auid=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='PAM: 
accounting acct="sgrubb" : exe="/usr/sbin/gdm-binary" (hostname=?, addr=?, 
terminal=:0 res=success)'

Up until around 2010, all user space originating events had commas between the 
last 4 fields which also including being inside parenthesis. This was later 
decided to be a waste of bytes and slowed down parsing to handle the comma for 
matching/translating purposes. Current events do not have this.

If you see any current events that are mishandled by this legacy code, let me 
know and I'll see how we can fix it.

-Steve

  reply	other threads:[~2014-04-07 13:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07  6:29 ausearch question Burn Alting
2014-04-07 13:59 ` Steve Grubb [this message]
2014-04-07 15:53   ` Burn Alting
  -- strict thread matches above, loose matches on Subject: below --
2008-05-01 18:11 LC Bruzenak
2008-05-02 14:06 ` Steve Grubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2668850.aNSDbdvmsr@x2 \
    --to=sgrubb@redhat.com \
    --cc=burn@swtf.dyndns.org \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox