AUDIT: Wait for backlog to clear when generating messages.
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>
Wed, 22 Jun 2005 14:04:33 +0000 (15:04 +0100)
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>
Wed, 22 Jun 2005 14:04:33 +0000 (15:04 +0100)
commit9ad9ad385be27fcc7c16d290d972c6173e780a61
treebbca700c2d88ba421a6c9c348de367eaf4de0e2c
parent177bbc733a1d9c935bc3d6efd776a6699b29b1ca
AUDIT: Wait for backlog to clear when generating messages.

Add a gfp_mask to audit_log_start() and audit_log(), to reduce the
amount of GFP_ATOMIC allocation -- most of it doesn't need to be
GFP_ATOMIC. Also if the mask includes __GFP_WAIT, then wait up to
60 seconds for the auditd backlog to clear instead of immediately
abandoning the message.

The timeout should probably be made configurable, but for now it'll
suffice that it only happens if auditd is actually running.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/audit.h
kernel/audit.c
kernel/auditsc.c
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/ss/services.c