path: root/security
diff options
authorDavid Howells <dhowells@redhat.com>2010-12-24 14:48:35 +0000
committerJames Morris <jmorris@namei.org>2011-01-24 10:49:45 +1100
commit821404434f3324bf23f545050ff64055a149766e (patch)
tree619847c1b4c101da7eddee2cc920af329829847f /security
parentced3b93018a9633447ddeb12a96f25e08154cbe7 (diff)
CacheFiles: Add calls to path-based security hooks
Add calls to path-based security hooks into CacheFiles as, unlike inode-based security, these aren't implicit in the vfs_mkdir() and similar calls. Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security')
1 files changed, 3 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c
index 739e40362f44..b84a89dd59c6 100644
--- a/security/security.c
+++ b/security/security.c
@@ -360,6 +360,7 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode)
return 0;
return security_ops->path_mkdir(dir, dentry, mode);
int security_path_rmdir(struct path *dir, struct dentry *dentry)
@@ -374,6 +375,7 @@ int security_path_unlink(struct path *dir, struct dentry *dentry)
return 0;
return security_ops->path_unlink(dir, dentry);
int security_path_symlink(struct path *dir, struct dentry *dentry,
const char *old_name)
@@ -400,6 +402,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
return security_ops->path_rename(old_dir, old_dentry, new_dir,
int security_path_truncate(struct path *path)

Privacy Policy