All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederik Bosch <f.bosch@genkgo.nl>
To: linux-audit@redhat.com
Subject: Re: configuration for busy docker host
Date: Mon, 20 Aug 2018 16:10:44 +0200	[thread overview]
Message-ID: <84c21325-1a2e-951c-6d68-d9a469bd2c4c@genkgo.nl> (raw)
In-Reply-To: <28615add-906a-b86a-2d02-db5ae33898d9@genkgo.nl>

In my initial message I did not include the output of auditctl -s. In 
the meanwhile I have disabled failure (0) and increased the backlog 
limited (heavily). As you can see I still have a lost of 52.

While browsing the archives of the list I found MSG00127, 
https://www.redhat.com/archives/linux-audit/2017-September/msg00127.html. 
Maybe there are similarities with that problem. That user also reported 
a high number of last messages.

enabled 2
failure 0
pid 760
rate_limit 0
backlog_limit 524288
lost 52
backlog 0
backlog_wait_time 0
loginuid_immutable 0 unlocked

Hopefully someone is able to help.



On 20-08-18 11:56, Frederik Bosch wrote:
> Hello Audit team,
>
> As I have not found a location anywhere else on the web, I am sending 
> my question to this list. I have an Ubuntu 18.04 machine with auditd 
> and it acts as a Docker Host machine. I have hardened the system via 
> this package: https://github.com/konstruktoid/hardening which installs 
> auditd with the configuration to be found here: 
> https://github.com/konstruktoid/hardening/blob/master/misc/audit.rules.
>
> The problems I have are related to the directives -f and -b. The 
> hardening package uses -b 8192 and -f 2. That results in a kernel 
> panic very quickly because of audit backlog limit exceeded, and that 
> causes a reboot of the system. Now I wonder what a good configuration 
> would be. I started reading on the subject and read that -f 2 is 
> probably the best for security reasons. However, I do not want to have 
> a system that panics very quickly and reboots.
>
> Should I simply increase the backlog to much higher numbers? Or should 
> I change -f to not cause a kernel panic? Or am I missing something and 
> should I change some other configuration? Thanks for your help.
>
> Kind regards,
> Frederik Bosch
>
> -- 
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  reply	other threads:[~2018-08-20 14:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20  9:56 configuration for busy docker host Frederik Bosch
2018-08-20 14:10 ` Frederik Bosch [this message]
2018-08-20 17:48 ` Steve Grubb
2018-08-22 11:40   ` Frederik Bosch
2018-08-22 12:42     ` Steve Grubb
2018-08-22 14:49       ` Frederik Bosch
2018-08-23 14:18         ` Steve Grubb
2018-08-23 16:01           ` Frederik Bosch

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=84c21325-1a2e-951c-6d68-d9a469bd2c4c@genkgo.nl \
    --to=f.bosch@genkgo.nl \
    --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 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.