linux-audit.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: Lennart Poettering <lennart@poettering.net>,
	Paul Moore <paul@paul-moore.com>
Cc: Richard Guy Briggs <rgb@redhat.com>, linux-audit@redhat.com
Subject: Re: multicast listeners and audit events to kmsg
Date: Thu, 23 Apr 2020 09:19:09 -0700	[thread overview]
Message-ID: <f88f306c-9274-e2a6-fbc8-9e750e1289ef@schaufler-ca.com> (raw)
In-Reply-To: <20200423135743.GB63067@gardel-login>

On 4/23/2020 6:57 AM, Lennart Poettering wrote:
> On Do, 23.04.20 09:50, Paul Moore (paul@paul-moore.com) wrote:
>
>>>> If systemd enables the audit stream, and doesn't want the stream to
>>>> flood kmsg, it needs to make sure that the stream is directed to a
>>>> suitable sink, be it auditd or some other daemon.
>>> This sounds as if journald should start using the unicast stream. This
>>> basically means auditd is out of the game, and cannot be added in
>>> anymore, because the unicast stream is then owned by journald. It
>>> wouldn't be sufficient to just install the audit package to get
>>> classic audit working anymore. You'd have to reconfigure everything.
>>>
>>> I mean, we try to be non-intrusive, not step into your territory too
>>> much, not replace auditd, not kick auditd out of the game. But you are
>>> basically telling us to do just that?
>> My recommendation is that if you are going to enable audit you should
>> also ensure that auditd is running; that is what I'm telling you.
> Well, that's the "audit is my private kingdom" response, right?

I think it's more the "hey, watch out, here be dragons" response.

> People are interested in collecting the audit stream without having
> the full audit daemon installed. There's useful data in the audit
> stream, already generated during really early boot, long before auditd
> runs, i.e. in the initrd. And for smaller systems auditd is not really
> something people want around.

Audit systems are tricky because they have to be high data rate,
reliable and low impact. A user space component that doesn't meet
all of these requirements 100% of the time will fail. If auditd
could be made faster, more reliable or have lower impact and still
meet the other criteria you can bet it would be.

> For example, Fedora CoreOS wants to enable selinux, thus is interested
> in audit messages, but have no intention to install auditd, in the
> typical, minimal images they generate. See:
>
> https://github.com/systemd/systemd/issues/15324

If you can do a better job of consuming audit data than auditd I for one
would be impressed. I've written multiple audit systems over the years
(not this one, but the issues are all familiar and the solutions similar)
and the kernel -> user interface is much, much harder than it looks.


>
> Lennart
>
> --
> Lennart Poettering, Berlin
>
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit
>


--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit


  parent reply	other threads:[~2020-04-23 16:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-14  9:27 multicast listeners and audit events to kmsg Luca BRUNO
2020-04-15 15:53 ` Richard Guy Briggs
2020-04-16 12:06   ` Lennart Poettering
2020-04-16 18:46     ` Lenny Bruzenak
2020-04-17 18:57     ` Richard Guy Briggs
2020-04-17 19:21       ` Lennart Poettering
2020-04-17 20:08         ` Richard Guy Briggs
2020-04-22 21:59     ` Paul Moore
2020-04-23  7:30       ` Lennart Poettering
2020-04-23 13:50         ` Paul Moore
2020-04-23 13:57           ` Lennart Poettering
2020-04-23 14:04             ` Paul Moore
2020-04-23 16:19             ` Casey Schaufler [this message]
2020-04-23 16:44               ` Lennart Poettering
2020-04-23 17:17                 ` Steve Grubb

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=f88f306c-9274-e2a6-fbc8-9e750e1289ef@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=lennart@poettering.net \
    --cc=linux-audit@redhat.com \
    --cc=paul@paul-moore.com \
    --cc=rgb@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;
as well as URLs for NNTP newsgroup(s).