diff options
Diffstat (limited to 'security/apparmor/file.c')
-rw-r--r-- | security/apparmor/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/file.c b/security/apparmor/file.c index 913f377a038a..d186674f973a 100644 --- a/security/apparmor/file.c +++ b/security/apparmor/file.c | |||
@@ -275,7 +275,7 @@ static inline bool is_deleted(struct dentry *dentry) | |||
275 | * | 275 | * |
276 | * Returns: %0 else error if access denied or other error | 276 | * Returns: %0 else error if access denied or other error |
277 | */ | 277 | */ |
278 | int aa_path_perm(int op, struct aa_profile *profile, struct path *path, | 278 | int aa_path_perm(int op, struct aa_profile *profile, const struct path *path, |
279 | int flags, u32 request, struct path_cond *cond) | 279 | int flags, u32 request, struct path_cond *cond) |
280 | { | 280 | { |
281 | char *buffer = NULL; | 281 | char *buffer = NULL; |
@@ -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 }; |