summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-11-15 22:41:27 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-16 19:14:30 +0100
commit9b9a2f1a67f26a3ed66e672b7bad8f369a4b4a02 (patch)
tree28cfec9e1b502e4d571d0c259f0d9466107d4f98 /include
parentef90508574d7af48420bdc5f7b9a4f1cdd26bc70 (diff)
downloadlinux-stable-9b9a2f1a67f26a3ed66e672b7bad8f369a4b4a02.tar.gz
linux-stable-9b9a2f1a67f26a3ed66e672b7bad8f369a4b4a02.tar.bz2
linux-stable-9b9a2f1a67f26a3ed66e672b7bad8f369a4b4a02.zip
new helper: user_path_locked_at()
commit 74d016ecc1a7974664e98d1afbf649cd4e0e0423 upstream. Equivalent of kern_path_locked() taking dfd/userland name. User introduced in the next commit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/namei.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 3100371b5e32..74e0cc14ebf8 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -66,6 +66,7 @@ extern struct dentry *kern_path_create(int, const char *, struct path *, unsigne
extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
extern void done_path_create(struct path *, struct dentry *);
extern struct dentry *kern_path_locked(const char *, struct path *);
+extern struct dentry *user_path_locked_at(int , const char __user *, struct path *);
int vfs_path_parent_lookup(struct filename *filename, unsigned int flags,
struct path *parent, struct qstr *last, int *type,
const struct path *root);