]> git.karo-electronics.de Git - linux-beck.git/commitdiff
apparmor: constify aa_path_link()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2016 19:07:03 +0000 (15:07 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Mar 2016 04:47:26 +0000 (00:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/apparmor/file.c
security/apparmor/include/file.h

index 4dfc5d0d8413e2e87b5ebb81b39553c084303d8d..d186674f973a37df1aadc38c0a313042163f099d 100644 (file)
@@ -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 };
index afc5b294e0d538b8dc4d0ad4c263d35ec8a73f3d..4803c97d19924c9923a66d5c1a22ccb7ccd3d224 100644 (file)
@@ -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);