Skip to content

Commit 3539aaf

Browse files
author
Al Viro
committed
apparmor: constify aa_path_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 741aca7 commit 3539aaf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎security/apparmor/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static inline bool xindex_is_subset(u32 link, u32 target)
346346
* Returns: %0 if allowed else error
347347
*/
348348
int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
349-
struct path *new_dir, struct dentry *new_dentry)
349+
const struct path *new_dir, struct dentry *new_dentry)
350350
{
351351
struct path link = { new_dir->mnt, new_dentry };
352352
struct path target = { new_dir->mnt, old_dentry };

‎security/apparmor/include/file.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ int aa_path_perm(int op, struct aa_profile *profile, const struct path *path,
175175
int flags, u32 request, struct path_cond *cond);
176176

177177
int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
178-
struct path *new_dir, struct dentry *new_dentry);
178+
const struct path *new_dir, struct dentry *new_dentry);
179179

180180
int aa_file_perm(int op, struct aa_profile *profile, struct file *file,
181181
u32 request);

0 commit comments

Comments
 (0)