From: Al Viro Date: Fri, 25 Mar 2016 19:07:03 +0000 (-0400) Subject: apparmor: constify aa_path_link() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3539aaf670cdd68a37314cd5db400c0c77287c88;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git apparmor: constify aa_path_link() Signed-off-by: Al Viro --- 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 }; diff --git a/security/apparmor/include/file.h b/security/apparmor/include/file.h index afc5b294e0d5..4803c97d1992 100644 --- a/security/apparmor/include/file.h +++ b/security/apparmor/include/file.h @@ -175,7 +175,7 @@ int aa_path_perm(int op, struct aa_profile *profile, const struct path *path, int flags, u32 request, struct path_cond *cond); 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); int aa_file_perm(int op, struct aa_profile *profile, struct file *file, u32 request);