diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:27:45 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:36 -0400 |
commit | 3ccee46ab487d5b87d0621824efe2500b2857c58 (patch) | |
tree | e4d95cd62a9fce7bbef12dfb1b68357bc28a1511 /security/apparmor | |
parent | 8db0185659c33143915768bdd33fc2fb1b1cbb58 (diff) | |
download | linux-stable-3ccee46ab487d5b87d0621824efe2500b2857c58.tar.gz linux-stable-3ccee46ab487d5b87d0621824efe2500b2857c58.tar.bz2 linux-stable-3ccee46ab487d5b87d0621824efe2500b2857c58.zip |
constify security_path_{link,rename}
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/lsm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index eadaa58bd6fd..2660fbcf94d1 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -280,7 +280,7 @@ static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry, S_IFLNK); } -static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir, +static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry) { struct aa_profile *profile; @@ -295,8 +295,8 @@ static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir, return error; } -static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry, - struct path *new_dir, struct dentry *new_dentry) +static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, + const struct path *new_dir, struct dentry *new_dentry) { struct aa_profile *profile; int error = 0; |