linux/tools/testing/selftests/landlock
Tingmao Wang 1c236e7fe7
selftests/landlock: Add tests for invalid use of quiet flag
Make sure that these calls return EINVAL.

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

Assisted-by: GitHub-Copilot:claude-opus-4.8
Signed-off-by: Tingmao Wang <m@maowtm.org>
Link: https://patch.msgid.link/9401d5c6468675863d944d6c26640d97db1a1f31.1781228815.git.m@maowtm.org
[mic: Add test coverage]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-06-14 20:17:25 +02:00
..
.gitignore selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
audit_test.c selftests/landlock: Add tests for quiet flag with scope 2026-06-14 20:17:24 +02:00
audit.h selftests/landlock: Explicitly disable audit in teardowns 2026-06-13 23:15:03 +02:00
base_test.c selftests/landlock: Add tests for invalid use of quiet flag 2026-06-14 20:17:25 +02:00
common.h selftests/landlock: Replace hard-coded 16 with a constant 2026-06-14 20:17:22 +02:00
config selftests/landlock: Add tests for audit flags and domain IDs 2025-03-26 13:59:45 +01:00
config.um selftests/landlock: Add hostfs tests 2023-06-12 21:26:23 +02:00
fs_bench.c selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
fs_test.c selftests/landlock: Add tests for quiet flag with fs rules 2026-06-14 20:17:23 +02:00
Makefile selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
net_test.c selftests/landlock: Add tests for quiet flag with net rules 2026-06-14 20:17:23 +02:00
ptrace_test.c selftests/landlock: Filter dealloc records in audit_count_records() 2026-05-21 19:32:11 +02:00
sandbox-and-launch.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
scoped_abstract_unix_test.c selftests/landlock: Add tests for quiet flag with scope 2026-06-14 20:17:24 +02:00
scoped_base_variants.h selftests/landlock: Use scoped_base_variants.h for ptrace_test 2025-12-29 16:19:39 +01:00
scoped_common.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_multiple_domain_variants.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_signal_test.c selftests/landlock: Test SCOPE_SIGNAL on the SIGIO/fowner pgid path 2026-06-13 23:15:00 +02:00
scoped_test.c landlock: Add signal scoping 2024-09-16 23:50:52 +02:00
true.c
tsync_test.c landlock: Allow TSYNC with LOG_SUBDOMAINS_OFF and fd=-1 2026-04-07 18:51:00 +02:00
wait-pipe-sandbox.c selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
wait-pipe.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
wrappers.h selftests/landlock: Add wrappers.h 2025-01-17 19:05:38 +01:00