From: Oleg Nesterov Date: Tue, 8 Oct 2013 12:46:03 +0000 (-0700) Subject: apparmor: remove the "task" arg from may_change_ptraced_domain() X-Git-Tag: v3.13-rc1~18^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51775fe736f053329faf0f5de7c679ee4cb0023d;p=pandora-kernel.git apparmor: remove the "task" arg from may_change_ptraced_domain() Unless task == current ptrace_parent(task) is not safe even under rcu_read_lock() and most of the current users are not right. So may_change_ptraced_domain(task) looks wrong as well. However it is always called with task == current so the code is actually fine. Remove this argument to make this fact clear. Note: perhaps we should simply kill ptrace_parent(), it buys almost nothing. And it is obviously racy, perhaps this should be fixed. Signed-off-by: Oleg Nesterov Signed-off-by: John Johansen --- Reading git-diff-tree failed