summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 20:21:09 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 06:47:27 +0200
commitd360775217070ff0f4291e47d3f568f0fe0b7374 (patch)
tree20829cffe0741543e0a754dc266ba36b55630523 /fs/namei.c
parentconstify security_path_{unlink,rmdir} (diff)
downloadlinux-d360775217070ff0f4291e47d3f568f0fe0b7374.tar.xz
linux-d360775217070ff0f4291e47d3f568f0fe0b7374.zip
constify security_path_{mkdir,mknod,symlink}
... as well as unix_mknod() and may_o_create() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 794f81dce766..8c97544d6883 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2783,7 +2783,7 @@ static inline int open_to_namei_flags(int flag)
return flag;
}
-static int may_o_create(struct path *dir, struct dentry *dentry, umode_t mode)
+static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t mode)
{
int error = security_path_mknod(dir, dentry, mode, 0);
if (error)