From: hsultan@thefroid.net
To: linux-audit@redhat.com
Subject: Re: ABI guarantee for auditd
Date: Fri, 16 Jan 2015 13:34:32 -0800 [thread overview]
Message-ID: <b5a23b2522d08fb213ee5db4c9745076@thefroid.net> (raw)
In-Reply-To: <1952249.ljydSPkMKP@x2>
On 2015-01-16 05:48, Steve Grubb wrote:
> On Thursday, January 15, 2015 06:20:41 PM hsultan@thefroid.net wrote:
>> Thanks for the info, so I tried using libauparse (again, Ubuntu
>> 14.04
>> LTS), however I'm hitting something truly weird: once I've adddd the
>> event parsing code (taken from
>>
>> https://fedorahosted.org/audit/browser/trunk/contrib/plugin/audisp-example.c
>> ) and added -lauparse, what I get out of audit_get_reply now is
>> mangled.
>
> Why are you using that in an analytical program? That is a very low
> level
> function for getting events out of the kernel. You might want to have
> a look
> at this presentation to understand the audit architecture:
>
> http://people.redhat.com/sgrubb/audit/audit_ids_2011.pdf
>
> Auditd handles getting events from the kernel, passes them to
> audispd, you
> have a plugin to audispd and get the event in realtime. If you want
> events on
> disk, you just tell auparse_init that you want to use the logs as
> your source.
>
> Libauparse handles events after they have been processed by auditd.
I know. I sadly can't describe what I'm working on, however I have some
stringent perf requirements. That's why I've been looking at doing
custom parsing and that's why I'm bypassing the auditd daemon
completely. I figured out how to recreate a msg that auparse likes from
the output of audit_get_reply, and right now I'm planning on having both
'modes' (fast using custom parsing/ slower but 'official' parsing) live
in the binary, and simply have my process choose at start time after
parsing some specifically generated audit msgs. If my custom parsing
goes through properly, then I'll use my faster & custom parsing,
otherwise I'll revert to the official but slower parsing (and patch
appropriately to correct my custom parsing in the meantime).
Thanks,
Hassan
prev parent reply other threads:[~2015-01-16 21:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 20:24 ABI guarantee for auditd hsultan
2015-01-15 20:44 ` Steve Grubb
2015-01-15 22:34 ` hsultan
2015-01-15 22:59 ` Steve Grubb
2015-01-16 2:20 ` hsultan
2015-01-16 4:45 ` Hassan Sultan
2015-01-16 13:48 ` Steve Grubb
2015-01-16 21:34 ` hsultan [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=b5a23b2522d08fb213ee5db4c9745076@thefroid.net \
--to=hsultan@thefroid.net \
--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