mirror-linux/tools/testing/selftests/landlock
Günther Noack 9adbe89351
selftests/landlock: Add filesystem access benchmark
fs_bench benchmarks the performance of Landlock's path walk
by exercising it in a scenario that amplifies Landlock's overhead:

* Create a large number of nested directories
* Enforce a Landlock policy in which a rule is associated with each of
  these subdirectories
* Benchmark openat() applied to the deepest directory,
  forcing Landlock to walk the entire path.

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20260206151154.97915-3-gnoack3000@gmail.com
[mic: Fix missing mode with O_CREAT, improve text consistency, sort
includes]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-02-10 16:46:42 +01:00
..
.gitignore selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
Makefile selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
audit.h selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
audit_test.c selftests/landlock: Fix build of audit_test 2025-06-19 13:55:40 +02:00
base_test.c selftests/landlock: Add LANDLOCK_RESTRICT_SELF_TSYNC tests 2026-02-06 17:54:39 +01:00
common.h selftests/landlock: Fix TCP bind(AF_UNSPEC) test case 2025-12-26 20:38:57 +01: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: Properly close a file descriptor 2026-01-09 11:52:47 +01:00
net_test.c selftests/landlock: Add missing connect(minimal AF_UNSPEC) test 2025-12-26 20:38:57 +01:00
ptrace_test.c selftests/landlock: Use scoped_base_variants.h for ptrace_test 2025-12-29 16:19:39 +01: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: Fix missing semicolon 2025-12-29 16:19:38 +01: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: Add a new test for setuid() 2025-03-26 13:59:32 +01:00
scoped_test.c landlock: Add signal scoping 2024-09-16 23:50:52 +02:00
true.c
tsync_test.c selftests/landlock: Add LANDLOCK_RESTRICT_SELF_TSYNC tests 2026-02-06 17:54:39 +01: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