diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index c4c673240c1c..5259270e558f 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -434,6 +434,21 @@ int security_path_truncate(struct path *path, loff_t length, | |||
434 | return 0; | 434 | return 0; |
435 | return security_ops->path_truncate(path, length, time_attrs); | 435 | return security_ops->path_truncate(path, length, time_attrs); |
436 | } | 436 | } |
437 | |||
438 | int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt, | ||
439 | mode_t mode) | ||
440 | { | ||
441 | if (unlikely(IS_PRIVATE(dentry->d_inode))) | ||
442 | return 0; | ||
443 | return security_ops->path_chmod(dentry, mnt, mode); | ||
444 | } | ||
445 | |||
446 | int security_path_chown(struct path *path, uid_t uid, gid_t gid) | ||
447 | { | ||
448 | if (unlikely(IS_PRIVATE(path->dentry->d_inode))) | ||
449 | return 0; | ||
450 | return security_ops->path_chown(path, uid, gid); | ||
451 | } | ||
437 | #endif | 452 | #endif |
438 | 453 | ||
439 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) | 454 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) |