diff options
author | Al Viro | 2016-03-25 20:27:45 +0100 |
---|---|---|
committer | Al Viro | 2016-03-28 06:47:36 +0200 |
commit | 3ccee46ab487d5b87d0621824efe2500b2857c58 (patch) | |
tree | e4d95cd62a9fce7bbef12dfb1b68357bc28a1511 /security/security.c | |
parent | apparmor: remove useless checks for NULL ->mnt (diff) | |
download | kernel-qcow2-linux-3ccee46ab487d5b87d0621824efe2500b2857c58.tar.gz kernel-qcow2-linux-3ccee46ab487d5b87d0621824efe2500b2857c58.tar.xz kernel-qcow2-linux-3ccee46ab487d5b87d0621824efe2500b2857c58.zip |
constify security_path_{link,rename}
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 6 |
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, return call_int_hook(path_symlink, 0, dir, dentry, old_name); } -int security_path_link(struct dentry *old_dentry, struct path *new_dir, +int security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry) { 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, return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); } -int security_path_rename(struct path *old_dir, struct dentry *old_dentry, - struct path *new_dir, struct dentry *new_dentry, +int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, + const struct path *new_dir, struct dentry *new_dentry, unsigned int flags) { if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) || |