[RFC PATCH bpf-next 01/12] namei: introduce __path_walk_parent()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Oct 6 00:27:29 UTC 2026


> From: Song Liu <song at kernel.org>
> 
> Factor the step-to-parent logic out of follow_dotdot() into
> __path_walk_parent(), which walks a plain struct path to its parent,
> crossing mount trees via choose_mountpoint().
> 
> This will be used by a VFS ancestor walker serving landlock and BPF.
> 
> Suggested-by: Neil Brown <neil at brown.name>
> Signed-off-by: Song Liu <song at kernel.org>
> [justin: rebased, kept the helper static to namei.c, dropped the
>  path_walk_parent() wrapper and the namei.h export]
> 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=1




More information about the Linux-security-module-archive mailing list