summaryrefslogtreecommitdiff
path: root/security/apparmor
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 21:22:01 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 07:46:54 +0300
commit81f4c50607b423a59f8a1b03e1e8fc409a1dcd22 (patch)
treeb1061fcf880915ead6fbf10e70af5d512cec3182 /security/apparmor
parent2c7661ff419580f5c06ea409e31407e0ff52cb95 (diff)
downloadlinux-81f4c50607b423a59f8a1b03e1e8fc409a1dcd22.tar.xz
constify security_path_truncate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor')
-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 9713037e5257..83e9c3c2cfc8 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -269,7 +269,7 @@ static int apparmor_path_mknod(struct path *dir, struct dentry *dentry,
return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode);
}
-static int apparmor_path_truncate(struct path *path)
+static int apparmor_path_truncate(const struct path *path)
{
struct path_cond cond = { d_backing_inode(path->dentry)->i_uid,
d_backing_inode(path->dentry)->i_mode