aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/security.c b/security/security.c
index 7f62e2ed6a28..33b85a960128 100644
--- a/security/security.c
+++ b/security/security.c
@@ -450,7 +450,7 @@ int security_path_symlink(const struct path *dir, struct dentry *dentry,
450 return call_int_hook(path_symlink, 0, dir, dentry, old_name); 450 return call_int_hook(path_symlink, 0, dir, dentry, old_name);
451} 451}
452 452
453int security_path_link(struct dentry *old_dentry, struct path *new_dir, 453int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
454 struct dentry *new_dentry) 454 struct dentry *new_dentry)
455{ 455{
456 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)))) 456 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry))))
@@ -458,8 +458,8 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
458 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); 458 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry);
459} 459}
460 460
461int security_path_rename(struct path *old_dir, struct dentry *old_dentry, 461int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
462 struct path *new_dir, struct dentry *new_dentry, 462 const struct path *new_dir, struct dentry *new_dentry,
463 unsigned int flags) 463 unsigned int flags)
464{ 464{
465 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) || 465 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) ||