From: Thomas Gleixner Date: Wed, 9 Dec 2009 16:13:31 +0000 (+0100) Subject: capabilities: Use RCU to protect task lookup in sys_capget X-Git-Tag: v2.6.34-rc1~228^2^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86fc80f16e8a2449d5827bf1a9838b7fd9f70097;p=pandora-kernel.git capabilities: Use RCU to protect task lookup in sys_capget cap_get_target_pid() protects the task lookup with tasklist_lock. security_capget() is called under tasklist_lock as well but tasklist_lock does not protect anything there. The capabilities are protected by RCU already. So tasklist_lock only protects the lookup and prevents the task going away, which can be done with rcu_read_lock() as well. Signed-off-by: Thomas Gleixner Signed-off-by: James Morris --- Reading git-diff-tree failed