aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/lsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/apparmor/lsm.c')
-rw-r--r--security/apparmor/lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index 3adbff987b77..8d19615dcb73 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -334,7 +334,7 @@ static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry,
334 return error; 334 return error;
335} 335}
336 336
337static int apparmor_path_chmod(struct path *path, umode_t mode) 337static int apparmor_path_chmod(const struct path *path, umode_t mode)
338{ 338{
339 if (!mediated_filesystem(path->dentry)) 339 if (!mediated_filesystem(path->dentry))
340 return 0; 340 return 0;