LSM: Add security_path_chmod() and security_path_chown().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 4 Oct 2009 12:49:47 +0000 (21:49 +0900)
committerJames Morris <jmorris@namei.org>
Sun, 11 Oct 2009 23:56:00 +0000 (10:56 +1100)
commit89eda06837094ce9f34fae269b8773fcfd70f046
treedc11701c68ebcc8346d7567cfb53b9c7327ef445
parent941fc5b2bf8f7dd1d0a9c502e152fa719ff6578e
LSM: Add security_path_chmod() and security_path_chown().

This patch allows pathname based LSM modules to check chmod()/chown()
operations. Since notify_change() does not receive "struct vfsmount *",
we add security_path_chmod() and security_path_chown() to the caller of
notify_change().

These hooks are used by TOMOYO.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
fs/open.c
include/linux/security.h
security/capability.c
security/security.c