From: David Howells Date: Fri, 8 May 2009 12:55:27 +0000 (+0100) Subject: CRED: Guard the setprocattr security hook against ptrace X-Git-Tag: v2.6.31-rc1~395^2^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=107db7c7dd137aeb7361b8c2606ac936c0be58ff;p=pandora-kernel.git CRED: Guard the setprocattr security hook against ptrace Guard the setprocattr security hook against ptrace by taking the target task's cred_guard_mutex around it. The problem is that setprocattr() may otherwise note the lack of a debugger, and then perform an action on that basis whilst letting a debugger attach between the two points. Holding cred_guard_mutex across the test and the action prevents ptrace_attach() from doing that. Signed-off-by: David Howells Signed-off-by: James Morris --- Reading git-diff-tree failed