diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2009-10-04 08:49:48 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-10-11 19:56:02 -0400 |
commit | 8b8efb44033c7e86b3dc76f825c693ec92ae30e9 (patch) | |
tree | 8cf43afc59f88f36a86f3a8165770bccec28b3c3 /security/security.c | |
parent | 89eda06837094ce9f34fae269b8773fcfd70f046 (diff) |
LSM: Add security_path_chroot().
This patch allows pathname based LSM modules to check chroot() operations.
This hook is used by TOMOYO.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 5259270e558f..279757314a05 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -449,6 +449,11 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid) | |||
449 | return 0; | 449 | return 0; |
450 | return security_ops->path_chown(path, uid, gid); | 450 | return security_ops->path_chown(path, uid, gid); |
451 | } | 451 | } |
452 | |||
453 | int security_path_chroot(struct path *path) | ||
454 | { | ||
455 | return security_ops->path_chroot(path); | ||
456 | } | ||
452 | #endif | 457 | #endif |
453 | 458 | ||
454 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) | 459 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) |