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)
commitfe542cf59bf0b31afe72b9e9749c0f6645419fa0
treefcb1273863e96f4dd8206578f59ccaabceb46415
parent85c3b529f8ad4d65ba86b982ef050212ae7dd976
LSM: Move security_path_chmod()/security_path_chown() to after mutex_lock().

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>
fs/open.c