summaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
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 /include/linux/security.h
parent2c7661ff419580f5c06ea409e31407e0ff52cb95 (diff)
downloadop-kernel-dev-81f4c50607b423a59f8a1b03e1e8fc409a1dcd22.zip
op-kernel-dev-81f4c50607b423a59f8a1b03e1e8fc409a1dcd22.tar.gz
constify security_path_truncate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r--include/linux/security.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index 157f0cb..be37cca 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -1447,7 +1447,7 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode);
int security_path_rmdir(struct path *dir, struct dentry *dentry);
int security_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
unsigned int dev);
-int security_path_truncate(struct path *path);
+int security_path_truncate(const struct path *path);
int security_path_symlink(struct path *dir, struct dentry *dentry,
const char *old_name);
int security_path_link(struct dentry *old_dentry, struct path *new_dir,
@@ -1481,7 +1481,7 @@ static inline int security_path_mknod(struct path *dir, struct dentry *dentry,
return 0;
}
-static inline int security_path_truncate(struct path *path)
+static inline int security_path_truncate(const struct path *path)
{
return 0;
}
OpenPOWER on IntegriCloud