Lines Matching defs:path
84 * tomoyo_get_absolute_path - Get the path of a dentry but ignores chroot'ed root.
86 * @path: Pointer to "struct path".
94 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer,
101 pos = d_absolute_path(path, buffer, buflen - 1);
103 struct inode *inode = d_backing_inode(path->dentry);
115 * tomoyo_get_dentry_path - Get the path of a dentry.
145 * tomoyo_get_local_path - Get the path of a dentry.
225 * @path: Pointer to "struct path".
227 * Returns the realpath of the given @path on success, NULL otherwise.
237 char *tomoyo_realpath_from_path(const struct path *path)
242 struct dentry *dentry = path->dentry;
267 pos = tomoyo_get_local_path(path->dentry, buf,
271 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1);
277 pos = tomoyo_get_local_path(path->dentry, buf,
301 struct path path;
303 if (pathname && kern_path(pathname, 0, &path) == 0) {
304 char *buf = tomoyo_realpath_from_path(&path);
306 path_put(&path);