diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-12-09 16:48:13 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-02-21 20:20:08 +0100 |
commit | 59b446882dbd906785be95cfcc8d8caef1dba08c (patch) | |
tree | 2733bdc552b65e69748c08b4111d184af2a360d7 /fs/ioprio.c | |
parent | 378cc63c24b6c9b9269c05475fbefeb8335790b3 (diff) | |
download | lwn-59b446882dbd906785be95cfcc8d8caef1dba08c.tar.gz lwn-59b446882dbd906785be95cfcc8d8caef1dba08c.zip |
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 <tglx@linutronix.de>
Cc: James Morris <jmorris@namei.org>
Cc: linux-security-module@vger.kernel.org
Diffstat (limited to 'fs/ioprio.c')
0 files changed, 0 insertions, 0 deletions