Lines Matching refs:path
24 #include <linux/path.h>
164 * @path: Should have been checked by get_path_from_fd().
167 const struct path *const path,
174 if (!d_is_dir(path->dentry) &&
184 object = get_inode_object(d_backing_inode(path->dentry));
447 * is_access_to_paths_allowed - Check accesses for requests with a common path
450 * @path: File hierarchy to walk through.
453 * requested path for most actions, or the source in case of a refer action
458 * this matrix can be unset according to the @path walk. An empty matrix
463 * @dentry_child1: Dentry to the initial child of the parent1 path. This
468 * the source. Must be set to 0 when using a simple path request.
471 * @dentry_child2: Dentry to the initial child of the parent2 path. This
476 * compared to the source (if any) for a common path. Because of
487 const struct path *const path,
497 struct path walker_path;
506 if (WARN_ON_ONCE(!domain || !path))
508 if (is_nouser_or_private(path->dentry))
550 walker_path = *path;
639 const struct path *const path,
645 if (is_access_to_paths_allowed(domain, path, access_request,
651 static inline int current_check_access_path(const struct path *const path,
659 return check_access_path(dom, path, access_request);
696 * collect_domain_accesses - Walk through a file path and collect accesses
703 * This helper is useful to begin a path walk from the @dir directory to a
814 const struct path *const new_dir,
822 struct path mnt_dir;
1050 const struct path *const path, const char *const type,
1058 static int hook_move_mount(const struct path *const from_path,
1059 const struct path *const to_path)
1092 static int hook_sb_pivotroot(const struct path *const old_path,
1093 const struct path *const new_path)
1103 const struct path *const new_dir,
1110 static int hook_path_rename(const struct path *const old_dir,
1112 const struct path *const new_dir,
1121 static int hook_path_mkdir(const struct path *const dir,
1127 static int hook_path_mknod(const struct path *const dir,
1139 static int hook_path_symlink(const struct path *const dir,
1146 static int hook_path_unlink(const struct path *const dir,
1152 static int hook_path_rmdir(const struct path *const dir,
1158 static int hook_path_truncate(const struct path *const path)
1160 return current_check_access_path(path, LANDLOCK_ACCESS_FS_TRUNCATE);