[RFC PATCH bpf-next 07/12] selftests/bpf: exercise the path ancestor iterator
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Oct 6 00:28:41 UTC 2026
> Walk the ancestry of a mkdir's parent directory from a sleepable LSM
> program and check that the iteration reaches the root: the temporary
> directory, its parent and / are visited, and no position comes back
> flagged.
>
> Resolve the second position's pathname from the acquired position after
> the step that yielded it has been taken, so that the acquired reference
> is what the sleepable kfunc runs on rather than the walk's.
>
> 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=7
More information about the Linux-security-module-archive
mailing list