public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: James Antill <james.antill@redhat.com>,
	Abhishek Gupta <abhikiki@gmail.com>
Subject: Re: difficulty with TYPE
Date: Tue, 15 Jan 2008 09:29:17 -0500	[thread overview]
Message-ID: <200801150929.17738.sgrubb@redhat.com> (raw)
In-Reply-To: <1200404039.30787.4.camel@code.and.org>

On Tuesday 15 January 2008 08:33:59 James Antill wrote:
> >         /* Get header first. it is fixed size */
> >         vec[0].iov_base = (void*)&hdr;
> >         vec[0].iov_len = sizeof(hdr);
> >
> >             // Next payload
> >         vec[1].iov_base = data;
> >         vec[1].iov_len = MAX_AUDIT_MESSAGE_LENGTH;
> >
> >         rc = readv(pipe_fd, vec, 2);
> >         if (rc == 0 || rc == -1) {
>
>  The second iovec above can't just be MAX_AUDIT_MESSAGE_LENGTH, or if
> there are two messages you'll read some/all of the next one(s).

I am fixing the example code to match the code in 1.6.5's audispd program. The 
example code was included 2 years ago before we had a working audispd program 
so that people that were ambitious could write their own. At this point, 
audispd is working and people can just code plugins which auparse does work 
with when the string mode is selected for output format. See the audispd man 
page for more info.

-Steve

      parent reply	other threads:[~2008-01-15 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-15  7:14 difficulty with TYPE Abhishek Gupta
2008-01-15 13:33 ` James Antill
2008-01-15 13:58   ` John Dennis
2008-01-15 14:20     ` James Antill
2008-01-15 14:41       ` John Dennis
2008-01-15 14:59         ` Steve Grubb
2008-01-15 14:29   ` Steve Grubb [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=200801150929.17738.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=abhikiki@gmail.com \
    --cc=james.antill@redhat.com \
    --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