[PATCH] security/landlock: Add KUnit test for mixed valid and unknown namespace bits
Terence White
terrywhite2025 at gmail.com
Sun Nov 15 17:14:57 UTC 2026
Good evening,
This patch adds a KUnit test case (test_ns_types_to_bits_mixed) to exercise
landlock_ns_types_to_bits() with a mixed bitmask containing both a valid
namespace type (CLONE_NEWNS) and an unknown high bit. This verifies that
the WARN_ON_ONCE truncation guard behaves as expected under
partial-taint inputs.
Tested locally with all 40 KUnit tests passing successfully.
With kind regards,
Terry White
More information about the Linux-security-module-archive
mailing list