From: Peter Zijlstra Date: Fri, 27 Jul 2007 22:55:18 +0000 (+0200) Subject: audit: fix two bugs in the new execve audit code X-Git-Tag: v2.6.23-rc2~174 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040b3a2df2dd26c3e401823f3b0ce3fe99e966c5;p=pandora-kernel.git audit: fix two bugs in the new execve audit code copy_from_user() returns the number of bytes not copied, hence 0 is the expected output. axi->mm might not be valid anymore when not equal to current->mm, do not dereference before checking that - thanks to Al for spotting that. Signed-off-by: Peter Zijlstra Tested-by: Steve Grubb Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed