summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 14:22:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 00:46:54 -0400
commit81f4c50607b423a59f8a1b03e1e8fc409a1dcd22 (patch)
treeb1061fcf880915ead6fbf10e70af5d512cec3182 /security/security.c
parent2c7661ff419580f5c06ea409e31407e0ff52cb95 (diff)
downloadlwn-81f4c50607b423a59f8a1b03e1e8fc409a1dcd22.tar.gz
lwn-81f4c50607b423a59f8a1b03e1e8fc409a1dcd22.zip
constify security_path_truncate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c
index 3644b0344d29..23ffb6cc3974 100644
--- a/security/security.c
+++ b/security/security.c
@@ -478,7 +478,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
}
EXPORT_SYMBOL(security_path_rename);
-int security_path_truncate(struct path *path)
+int security_path_truncate(const struct path *path)
{
if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
return 0;