diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:07:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:26 -0400 |
commit | 3539aaf670cdd68a37314cd5db400c0c77287c88 (patch) | |
tree | baaae67c89b2cda0bf7375ca7f0cba5fe68f4385 | |
parent | 741aca71d61c3485d1e9db3bcea00d4509cf2301 (diff) |
apparmor: constify aa_path_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | security/apparmor/file.c | 2 | ||||
-rw-r--r-- | security/apparmor/include/file.h | 2 |
2 files changed, 2 insertions, 2 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) | |||
346 | * Returns: %0 if allowed else error | 346 | * Returns: %0 if allowed else error |
347 | */ | 347 | */ |
348 | int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, | 348 | 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) |
350 | { | 350 | { |
351 | struct path link = { new_dir->mnt, new_dentry }; | 351 | struct path link = { new_dir->mnt, new_dentry }; |
352 | struct path target = { new_dir->mnt, old_dentry }; | 352 | 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, | |||
175 | int flags, u32 request, struct path_cond *cond); | 175 | int flags, u32 request, struct path_cond *cond); |
176 | 176 | ||
177 | int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, | 177 | 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); |
179 | 179 | ||
180 | int aa_file_perm(int op, struct aa_profile *profile, struct file *file, | 180 | int aa_file_perm(int op, struct aa_profile *profile, struct file *file, |
181 | u32 request); | 181 | u32 request); |