[PATCH v2 bpf-next 1/4] namei: Introduce new helper function path_walk_parent()

Song Liu song at kernel.org
Fri Jun 6 17:01:26 UTC 2025


On Fri, Jun 6, 2025 at 7:41 AM Al Viro <viro at zeniv.linux.org.uk> wrote:
>
> On Mon, Jun 02, 2025 at 11:59:17PM -0700, Song Liu wrote:
> > This helper walks an input path to its parent. Logic are added to handle
> > walking across mount tree.
> >
> > This will be used by landlock, and BPF LSM.
>
> Unless I'm misreading that, it does *NOT* walk to parent - it treats
> step into mountpoint as a separate step.  NAK in that form - it's
> simply a wrong primitive.

I think this should be fixed by Mickaël's comment. I will send v3 with
it.

Thanks,
Song



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