Files
Mickaël Salaün c8dcb17205 selftests/landlock: Test network denial context
Network denial events now report the port from their one authoritative
validated address through one signed field.  Verify this value directly
without inferring a source or destination role.

Exercise a nonzero IPv4 TCP bind, an explicit-zero IPv4 UDP bind, a
synthetic-zero IPv6 UDP autobind, and a family-only AF_UNSPEC UDP send.
Require exactly one event with the exact policy blocker for each shape.
The value -1 distinguishes a family-only address with no validated port
from the two valid port-zero cases.

Test coverage for security/landlock is 91.6% of 2625 lines according to
LLVM 22.

Cc: Günther Noack <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: https://patch.msgid.link/[email protected]
[mic: Add test coverage]
Signed-off-by: Mickaël Salaün <[email protected]>
2026-09-20 14:13:31 +02:00
..
…