Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Linda Knippers <linda.knippers@hp.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-audit@redhat.com, a.p.zijlstra@chello.nl
Subject: Re: [PATCH 2/2] Audit: remove the limit on execve arguments when audit is running
Date: Mon, 08 Oct 2007 22:34:44 -0400	[thread overview]
Message-ID: <470AE8C4.1020901@hp.com> (raw)
In-Reply-To: <200710082017.46614.sgrubb@redhat.com>

Steve Grubb wrote:
> On Monday 08 October 2007 18:45:15 Linda Knippers wrote:
>>> Well, I take this one to be the same as PATH records. Sometimes you get
>>> 1, sometimes 2, sometimes 3.
>> But for any given system call, wouldn't you always get the same number
>> of PATH records?
> 
> Maybe, sometimes you get a socket address record, too/instead of. The point is 
> that you have no idea how many of them you are going to get without some 
> analysis.

In the case of arguments, don't you know argc?  You could emit argc= before
a0.

>> With PATH records, there's an item count in the SYSCALL record and
>> each PATH record says which one it is, so its possible to verify that
>> you've gotten them all. 
> 
> The way these get split, there is no way to know ahead of time how many you 
> are going to get.  These are being split as they are being output. The item 
> count displayed in syscall is incremented as each aux record data is added to 
> the context. So, there's no performance cost for displaying this.

I care about knowing how many arguments there are so that I know if I've got
them all, not so much how many records get emitted.  However, in the case
where a single argument is split across multiple records, I think it would
be good to know that I've gotten 1 of 3, 2 of 3, 3 of 3, etc, or the total
length of the argument.
> 
> We could add an item parameter, but that only gives you sequence information. 
> But you could infer the sequence information by the argument's number - it 
> continually increments. If a record ends and a347 and the next one begins at 
> a895, then you are missing one or more records.

Unless I'm missing the last records for a syscall, in which case all I know
is that there aren't any more in the log.
> 
> But even then, I don't think that's possible unless someone's tampered with 
> the logs. If any allocation can't be done, the syscall is failed. So, the 
> only question is what happens if the netlink queue has a problem sending to 
> user space? Well, you get a syslog message and the kernel follows the  
> failure action set by the admin - just as it would for any event.
> 
>> I don't see the same type of information for the arguments so its not
>> possible to know if you've got a complete audit trail.
> 
> When it moves on to another record type, you've got them all.

Not necessarily.

-- ljk
> 
> -Steve

      reply	other threads:[~2007-10-09  2:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 21:29 [PATCH 2/2] Audit: remove the limit on execve arguments when audit is running Eric Paris
2007-10-03 16:56 ` Peter Zijlstra
2007-10-05 15:11 ` Eric Paris
2007-10-05 15:44   ` Steve Grubb
2007-10-08 19:45   ` Klaus Weidner
2007-10-08 21:41     ` Steve Grubb
2007-10-08 22:45       ` Linda Knippers
2007-10-09  0:17         ` Steve Grubb
2007-10-09  2:34           ` Linda Knippers [this message]

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=470AE8C4.1020901@hp.com \
    --to=linda.knippers@hp.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-audit@redhat.com \
    --cc=sgrubb@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