Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

apparmor: constify aa_path_link()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 3539aaf6 741aca71

+2 -2
+1 -1
security/apparmor/file.c
··· 346 346 * Returns: %0 if allowed else error 347 347 */ 348 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 351 struct path link = { new_dir->mnt, new_dentry }; 352 352 struct path target = { new_dir->mnt, old_dentry };
+1 -1
security/apparmor/include/file.h
··· 175 175 int flags, u32 request, struct path_cond *cond); 176 176 177 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 180 int aa_file_perm(int op, struct aa_profile *profile, struct file *file, 181 181 u32 request);