LSM: Move security_path_chmod()/security_path_chown() to after mutex_lock().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 22 Nov 2009 02:49:55 +0000 (11:49 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 23 Nov 2009 21:49:26 +0000 (08:49 +1100)
We should call security_path_chmod()/security_path_chown() after mutex_lock()
in order to avoid races.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found