]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
audit: don't ever sleep on a command record/message
authorPaul Moore <paul@paul-moore.com>
Tue, 29 Nov 2016 21:53:26 +0000 (16:53 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Dec 2016 18:06:04 +0000 (13:06 -0500)
commita09cfa470817ac086cf68418da13a2b91c2744ef
treea701499dc5828aa54314d843917ea35a60cc436c
parent6c54e7899693dee3db67ea996e9be0e10f67920f
audit: don't ever sleep on a command record/message

Sleeping on a command record/message in audit_log_start() could slow
something, e.g. auditd, from doing something important, e.g. clean
shutdown, which could present problems on a heavily loaded system.
This patch allows tasks to bypass any queue restrictions if they are
logging a command record/message.

Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c