]> bbs.cooldavid.org Git - net-next-2.6.git/commit - security/tomoyo/tomoyo.h
tomoyo: avoid get+put of task_struct
authorSerge E. Hallyn <serue@us.ibm.com>
Tue, 2 Jun 2009 03:47:19 +0000 (22:47 -0500)
committerJames Morris <jmorris@namei.org>
Tue, 2 Jun 2009 05:13:13 +0000 (15:13 +1000)
commitfbeb4a9c20d00e2550156f9e5a34473fbde59de2
treed08881a9eb2d768722363d7022d2ae4da81494d9
parent13b297d943828c4594527a2bd9c30ecd04e37886
tomoyo: avoid get+put of task_struct

Use task_cred_xxx(task, security) in tomoyo_real_domain() to
avoid a get+put of the target cred.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/tomoyo.h