diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-26 11:50:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:44:05 -0400 |
commit | dae6ad8f37529963ae7df52baaccf056b38f210e (patch) | |
tree | 1bfc6f766601e744c2c2c064b97cdefdcca4ad5c /include/linux/namei.h | |
parent | 49084c3bb2055c401f3493c13edae14d49128ca0 (diff) |
new helpers: kern_path_create/user_path_create
combination of kern_path_parent() and lookup_create(). Does *not*
expose struct nameidata to caller. Syscalls converted to that...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/namei.h')
-rw-r--r-- | include/linux/namei.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index 3439ab862e1d..b8cea804d31a 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h | |||
@@ -74,6 +74,8 @@ extern int user_path_at(int, const char __user *, unsigned, struct path *); | |||
74 | 74 | ||
75 | extern int kern_path(const char *, unsigned, struct path *); | 75 | extern int kern_path(const char *, unsigned, struct path *); |
76 | 76 | ||
77 | extern struct dentry *kern_path_create(int, const char *, struct path *, int); | ||
78 | extern struct dentry *user_path_create(int, const char __user *, struct path *, int); | ||
77 | extern int kern_path_parent(const char *, struct nameidata *); | 79 | extern int kern_path_parent(const char *, struct nameidata *); |
78 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, | 80 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, |
79 | const char *, unsigned int, struct nameidata *); | 81 | const char *, unsigned int, struct nameidata *); |