Lines Matching refs:path
92 static char *tomoyo_get_absolute_path(struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument
98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
100 struct inode *inode = path->dentry->d_inode; in tomoyo_get_absolute_path()
219 static char *tomoyo_get_socket_name(struct path *path, char * const buffer, in tomoyo_get_socket_name() argument
222 struct inode *inode = path->dentry->d_inode; in tomoyo_get_socket_name()
250 char *tomoyo_realpath_from_path(struct path *path) in tomoyo_realpath_from_path() argument
255 struct dentry *dentry = path->dentry; in tomoyo_realpath_from_path()
272 pos = tomoyo_get_socket_name(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
285 if (!path->mnt || in tomoyo_realpath_from_path()
287 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
291 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
297 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
321 struct path path; in tomoyo_realpath_nofollow() local
323 if (pathname && kern_path(pathname, 0, &path) == 0) { in tomoyo_realpath_nofollow()
324 char *buf = tomoyo_realpath_from_path(&path); in tomoyo_realpath_nofollow()
325 path_put(&path); in tomoyo_realpath_nofollow()