lkml.org 
[lkml]   [2009]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] capabilities: Use RCU to protect task lookup in sys_capget
On Wed, 9 Dec 2009, Thomas Gleixner wrote:

> 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 <tglx@linutronix.de>


Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next


--
James Morris
<jmorris@namei.org>


\
 
 \ /
  Last update: 2009-12-10 02:05    [W:1.065 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site