All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Konrad Witaszczyk <def@freebsd.org>
Subject: Re: Question about the a[[:digit:]+]\[.*\] fields
Date: Mon, 01 Aug 2016 10:46:06 -0400	[thread overview]
Message-ID: <37697145.Sr86xZ3kit@x2> (raw)
In-Reply-To: <791A85A1-9404-4763-9584-D673DDDD747D@FreeBSD.org>

On Monday, August 1, 2016 12:16:30 AM EDT Mateusz Piotrowski wrote:
> Hello,
> 
> According to the field dictionary[1] there are fields which names are
> defined by the following regex: "a[[:digit:]+]\[.*\]".
> 
> I was able to find examples of fields like "a4" and "a5" (see [2]) but it
> doesn't fit the regex which seems to require a pair of square brackets (so
> "a4" should be "a4[]" or "a4[foo]"). I couldn't find any reference in the
> Linux Audit source code.

I think you have to have aurguments that are larger than the audit record 
limit and so many arguments that you have multiple execve records to contain 
them all. 

Here's one reference:
https://www.redhat.com/archives/linux-audit/2007-October/msg00015.html


> My questions are:
> 1. Is this regex valid and up-to-date? Or is it an outdated rule which
> doesn't apply anymore? 

Possibly. But try to generate it and see.

> 2. Could you suggest me where to look to see how those arguments to the
> execve syscall are handled? 

Handled where? Kernel? Userspace doesn't do much with any execve argument 
except decode it.

> 3. Could you post an example of a record with a field which fits the regex
> (assuming the regex is valid)?

The archive link above explains what was going to be added. Offhand I don't 
have one of these laying around in my logs. This test might create one for 
you:

https://github.com/linux-audit/audit-testsuite/tree/master/tests/exec_execve

-Steve


> [1]:
> https://github.com/linux-audit/audit-documentation/blob/master/specs/fields
> /field-dictionary.csv#L3 [2]:
> https://www.redhat.com/archives/linux-audit/2012-October/msg00090.html
> 
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  reply	other threads:[~2016-08-01 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-31 22:16 Question about the a[[:digit:]+]\[.*\] fields Mateusz Piotrowski
2016-08-01 14:46 ` Steve Grubb [this message]
2016-08-01 15:13   ` Mateusz Piotrowski
2016-08-07 18:51   ` Paul Moore
2016-08-08 12:01     ` Mateusz Piotrowski
2016-08-08 13:03       ` Paul Moore

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=37697145.Sr86xZ3kit@x2 \
    --to=sgrubb@redhat.com \
    --cc=def@freebsd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.