mirror of
https://github.com/torvalds/linux.git
synced 2026-10-30 14:06:03 +01:00
Add trace tests for the landlock_enforce_domain event in trace_test.c, asserting field counts after the syscall returns rather than line ordering across per-CPU buffers. They cover single-threaded and TSYNC enforcement (complete and process_wide set), a multi-threaded non-TSYNC process (process_wide clear), the single-threaded non-leader edge case, the flags-only path that creates no domain, and a thread-sync abort that emits create_domain and free_domain but no enforce_domain. landlock_enforce_domain is added to the fixture enable path and every disable list so its zero-events assertions cannot be tripped by a stray enforcement event. Test coverage for security/landlock is 91.6% of 2571 lines according to LLVM 22. Cc: Günther Noack <gnoack@google.com> Cc: Tingmao Wang <m@maowtm.org> Link: https://patch.msgid.link/20260811094338.288094-19-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| audit_test.c | ||
| audit.h | ||
| base_test.c | ||
| common.h | ||
| config | ||
| config.um | ||
| fs_bench.c | ||
| fs_test.c | ||
| Makefile | ||
| net_test.c | ||
| ptrace_test.c | ||
| sandbox-and-launch.c | ||
| scoped_abstract_unix_test.c | ||
| scoped_base_variants.h | ||
| scoped_common.h | ||
| scoped_multiple_domain_variants.h | ||
| scoped_signal_test.c | ||
| scoped_test.c | ||
| trace_fs_test.c | ||
| trace_test.c | ||
| trace.h | ||
| true.c | ||
| tsync_test.c | ||
| wait-pipe-sandbox.c | ||
| wait-pipe.c | ||
| wrappers.h | ||