]> git.baikalelectronics.ru Git - kernel.git/commit
audit: catch possible NULL audit buffers
authorKees Cook <keescook@chromium.org>
Fri, 11 Jan 2013 22:32:07 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Jan 2013 22:54:55 +0000 (14:54 -0800)
commit59d3f5a8c3371b8629a7276a3e377030e9c8a257
tree95a0532a89fdd148593c4bd52faa055d308e3380
parent215d144ba32e5b12e541bba025560de3f7de635c
audit: catch possible NULL audit buffers

It's possible for audit_log_start() to return NULL.  Handle it in the
various callers.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Cc: Jeff Layton <jlayton@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Julien Tinnes <jln@google.com>
Cc: Will Drewry <wad@google.com>
Cc: Steve Grubb <sgrubb@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/audit.c
kernel/audit_tree.c
kernel/audit_watch.c
kernel/auditsc.c