[RFC PATCH bpf-next 02/12] namei: add vfs_walk_ancestors()
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Oct 6 00:30:52 UTC 2026
> Add a callback-based walk over a path and its ancestors, built on
> __path_walk_parent(): the kernel owns the loop and the callback must
> not sleep, so an rcu-walk engine can be added later without changing
> the API.
>
> Disconnected root dentries are reported to the callback instead of
> terminating the walk; continuing over one resumes at the root of its
> mount. A disconnected mountpoint landed on by a mount crossing - the
> one position this walk visits that a dget_parent()/follow_up() loop
> never does - is additionally flagged VFS_WALK_POS_MOUNTPOINT, so
> security callers can reproduce their pre-conversion evaluation
> sequence exactly.
>
> Suggested-by: NeilBrown <neil at brown.name>
> Suggested-by: Christian Brauner <brauner at kernel.org>
> Signed-off-by: Justin Suess <utilityemal77 at gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261006002020.2890858-1-utilityemal77@gmail.com?part=2
More information about the Linux-security-module-archive
mailing list