aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 4ea63ed5e791..4a56f9b59e8c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1106,6 +1106,15 @@ int path_lookup(const char *name, unsigned int flags,
1106 return do_path_lookup(AT_FDCWD, name, flags, nd); 1106 return do_path_lookup(AT_FDCWD, name, flags, nd);
1107} 1107}
1108 1108
1109int kern_path(const char *name, unsigned int flags, struct path *path)
1110{
1111 struct nameidata nd;
1112 int res = do_path_lookup(AT_FDCWD, name, flags, &nd);
1113 if (!res)
1114 *path = nd.path;
1115 return res;
1116}
1117
1109/** 1118/**
1110 * vfs_path_lookup - lookup a file path relative to a dentry-vfsmount pair 1119 * vfs_path_lookup - lookup a file path relative to a dentry-vfsmount pair
1111 * @dentry: pointer to dentry of the base directory 1120 * @dentry: pointer to dentry of the base directory
@@ -2855,6 +2864,7 @@ EXPORT_SYMBOL(__page_symlink);
2855EXPORT_SYMBOL(page_symlink); 2864EXPORT_SYMBOL(page_symlink);
2856EXPORT_SYMBOL(page_symlink_inode_operations); 2865EXPORT_SYMBOL(page_symlink_inode_operations);
2857EXPORT_SYMBOL(path_lookup); 2866EXPORT_SYMBOL(path_lookup);
2867EXPORT_SYMBOL(kern_path);
2858EXPORT_SYMBOL(vfs_path_lookup); 2868EXPORT_SYMBOL(vfs_path_lookup);
2859EXPORT_SYMBOL(inode_permission); 2869EXPORT_SYMBOL(inode_permission);
2860EXPORT_SYMBOL(vfs_permission); 2870EXPORT_SYMBOL(vfs_permission);