All of lore.kernel.org
 help / color / mirror / Atom feed
* auparse question
@ 2008-06-06 19:20 LC Bruzenak
  2008-06-06 19:36 ` Miloslav Trmač
  0 siblings, 1 reply; 11+ messages in thread
From: LC Bruzenak @ 2008-06-06 19:20 UTC (permalink / raw)
  To: Linux Audit

I have successfully sent in a AUDIT_TRUSTED_APP user audit event &
viewed that message picked off the stream by audisp.

I send in my own n=v pairs.
The auparse library code returns all the name elements but on a string
value with embedded spaces it stops at the first space.

On the sending side I have tried escaping double-quotes, single-quotes,
and escaped single-quotes.

I read through most of the list entries regarding this and also Steve's
auparse text page and I must be missing the answer; apology in advance
since after reading through most of the replies I realized it has been
discussed thoroughly, but I do not see the answer.

I also copied the example in the  auparse_feed manpage, compiled that
and tried to put some data into a file for an easy example. I cannot
seem to get the right format in my event data file however. If someone
has an example of that file data it would help, since I'd ideally like
to use this setup for quick testing.

Thx,
LCB.

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* auparse question
@ 2011-08-30 21:09 LC Bruzenak
  0 siblings, 0 replies; 11+ messages in thread
From: LC Bruzenak @ 2011-08-30 21:09 UTC (permalink / raw)
  To: Linux Audit

I am using the parse library, calling auparse_get_type.
It returns a 0 on failure, which I believe is also the integer value for
AUDIT_PID.

Is this correct or am I missing somethng?

Thx,
LCB

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* auparse question
@ 2011-08-30 21:12 LC Bruzenak
  2011-08-30 23:18 ` Miloslav Trmac
  2011-08-31 16:49 ` Steve Grubb
  0 siblings, 2 replies; 11+ messages in thread
From: LC Bruzenak @ 2011-08-30 21:12 UTC (permalink / raw)
  To: Linux Audit

I'm using auparse_get_field_type from the parse lib.
The return value for error is "0" which is also that of the AUDIT_PID
field.

Right? I am getting some errors that thought they were PIDs.

Thx,
LCB

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: auparse question
@ 2011-08-31 18:07 LC Bruzenak
  0 siblings, 0 replies; 11+ messages in thread
From: LC Bruzenak @ 2011-08-31 18:07 UTC (permalink / raw)
  To: Linux Audit

> That does seem to be a mistake in the API. As a workaround for this, 
...

Thanks Steve,

Per Mirek, I just changed to look for the AUPARSE_TYPE_* enum for
checking the return and it is fine now. 

LCB
-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-08-31 18:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-06 19:20 auparse question LC Bruzenak
2008-06-06 19:36 ` Miloslav Trmač
2008-06-06 19:53   ` LC Bruzenak
2008-06-06 20:07   ` audit string encoding is broken (Was: auparse question) John Dennis
2008-06-06 20:45     ` LC Bruzenak
2011-08-30 21:09 auparse question LC Bruzenak
2011-08-30 21:12 LC Bruzenak
2011-08-30 23:18 ` Miloslav Trmac
2011-08-31 18:29   ` Steve Grubb
2011-08-31 16:49 ` Steve Grubb
2011-08-31 18:07 LC Bruzenak

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.