[PATCH] fix audit_init failure path
authorAmy Griffis <amy.griffis@hp.com>
Tue, 7 Mar 2006 03:40:05 +0000 (22:40 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Mar 2006 19:08:55 +0000 (14:08 -0500)
commit71e1c784b24a026a490b3de01541fc5ee14ebc09
tree7ee3aebf84b5bd1759b2b1925e09de37cb21d97f
parentbf45da97a45f634422559ec61429dddf4d2fffb9
[PATCH] fix audit_init failure path

Make audit_init() failure path handle situations where the audit_panic()
action is not AUDIT_FAIL_PANIC (default is AUDIT_FAIL_PRINTK).  Other uses
of audit_sock are not reached unless audit's netlink message handler is
properly registered.  Bug noticed by Peter Staubach.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.c