[PATCH 8/8] selftests/bpf: add a lifecycle test for the namespace LSM hooks
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Oct 26 11:03:15 UTC 2026
> Track new uts, ipc and net namespaces from a bpf LSM by their namespace
> id and check that:
>
> - namespace_init already sees the id that NS_GET_ID reports
>
> - namespace_init, namespace_install and namespace_free fire exactly once
> for each of them
>
> The test fails if the namespace_free hook isn't called or if the
> namespace id is allocated after namespace_init.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261026-work-security-namespace_free-v1-0-ffa3ebbf71bd@kernel.org?part=8
More information about the Linux-security-module-archive
mailing list