diff options
| author | Mickaël Salaün <mic@digikod.net> | 2026-09-18 20:50:31 +0200 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-09-20 14:13:31 +0200 |
| commit | c8dcb17205a689e96e2b8e46f22575a39b5b6320 (patch) | |
| tree | d93c3f189de77e997e2e739005f37d93fc536bbd /tools/perf/scripts/python/stackcollapse.py | |
| parent | c6dea91d846f192eb6ddbd44f5fd873035b8b285 (diff) | |
| download | linux-next-c8dcb17205a689e96e2b8e46f22575a39b5b6320.tar.gz linux-next-c8dcb17205a689e96e2b8e46f22575a39b5b6320.zip | |
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 <gnoack@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://patch.msgid.link/20260918185036.608651-9-mic@digikod.net
[mic: Add test coverage]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
