fix oops in __audit_signal_info()
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 7 Aug 2007 23:01:46 +0000 (00:01 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 8 Aug 2007 02:58:56 +0000 (19:58 -0700)
commit175fc484256e9c85e043f599ec2f6bc0d2e6c443
treee9a485aaa0810cb85f1198579596f9bd46d5e7c0
parent9dc83afdbefd184bf29f347e8fcbb6d8a2b5e6fe
fix oops in __audit_signal_info()

The check for audit_signals is misplaced and the check for
audit_dummy_context() is missing; as the result, if we send a signal to
auditd from task with NULL ->audit_context while we have audit_signals
!= 0 we end up with an oops.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/auditsc.c