summaryrefslogtreecommitdiffstats
path: root/security/apparmor/file.c
diff options
context:
space:
mode:
authorAl Viro2016-03-25 20:07:03 +0100
committerAl Viro2016-03-28 06:47:26 +0200
commit3539aaf670cdd68a37314cd5db400c0c77287c88 (patch)
treebaaae67c89b2cda0bf7375ca7f0cba5fe68f4385 /security/apparmor/file.c
parentapparmor: new helper - common_path_perm() (diff)
downloadkernel-qcow2-linux-3539aaf670cdd68a37314cd5db400c0c77287c88.tar.gz
kernel-qcow2-linux-3539aaf670cdd68a37314cd5db400c0c77287c88.tar.xz
kernel-qcow2-linux-3539aaf670cdd68a37314cd5db400c0c77287c88.zip
apparmor: constify aa_path_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor/file.c')
-rw-r--r--security/apparmor/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/file.c b/security/apparmor/file.c
index 4dfc5d0d8413..d186674f973a 100644
--- a/security/apparmor/file.c
+++ b/security/apparmor/file.c
@@ -346,7 +346,7 @@ static inline bool xindex_is_subset(u32 link, u32 target)
* Returns: %0 if allowed else error
*/
int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
- struct path *new_dir, struct dentry *new_dentry)
+ const struct path *new_dir, struct dentry *new_dentry)
{
struct path link = { new_dir->mnt, new_dentry };
struct path target = { new_dir->mnt, old_dentry };