From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Max Timchenko <maxvt@bu.edu>
Subject: Re: Running multiple audit service clients
Date: Fri, 12 Feb 2016 13:50:48 -0500 [thread overview]
Message-ID: <7953921.jdcWDAgg56@x2> (raw)
In-Reply-To: <CAF6gGuCK1QmU18QsHs0h0t3S6-gehQzXvyfJbNLj7QpRfL9VVQ@mail.gmail.com>
On Wednesday, February 10, 2016 04:28:26 PM Max Timchenko wrote:
> I have a situation where there are two audit clients on the same machine:
> one of them is auditd, and another one is an IDS client that uses the audit
> subsystem directly.
It should not be designed that way. For compliance purposes many people have
to save the audit logs. I have given several speeches on how to do this so
that everyone has a correct model to work from. The latest speech on audit+IDS
is here:
http://people.redhat.com/sgrubb/audit/audit_ids_2011.pdf
The main idea is that auditd has a builtin facility for sharing events,
auditspd. The IDS system can clip into it and get the event stream. If it
wants events as they come "off the wire" they should set the format option to
BINARY and they will get it exactly as it was handed to auditd. More typical
is to use STRING format so that they can use auparse to dissect the event for
processing.
> By looking at the source (
> http://lxr.free-electrons.com/source/kernel/audit.c?v=3.13#L787), I suspect
> that there might be no provision in the kernel for multiple audit subsystem
> userland daemons running in parallel (only one pid, only one netlink socket
> in the kernel). I could not find any documentation confirming or denying
> that.
There is not. Nor should there be. With the ease in which analysis programs
can get the audit stream, they should not have to resort to exclusive access.
For example, setroubleshooter plugin puts something in /etc/audisp/plugins.d/
so that it can see events in realtime. Its a good example of "doing it right".
> Has anyone tried that before? What would actually happen if two different
> audit clients tried to use the same interface to the audit subsystem in the
> kernel?
Last one wins.
-Steve
prev parent reply other threads:[~2016-02-12 18:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-10 21:28 Running multiple audit service clients Max Timchenko
2016-02-11 2:30 ` Richard Guy Briggs
2016-02-11 8:16 ` Paul Moore
2016-02-11 20:19 ` Max Timchenko
2016-02-12 4:39 ` Richard Guy Briggs
2016-02-12 19:13 ` Steve Grubb
2016-02-12 18:50 ` 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=7953921.jdcWDAgg56@x2 \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=maxvt@bu.edu \
/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