]> Gentwo Git Trees - linux/.git/commit
selftests/landlock: Add disconnected leafs and branch test suites
authorMickaël Salaün <mic@digikod.net>
Fri, 28 Nov 2025 17:21:59 +0000 (18:21 +0100)
committerMickaël Salaün <mic@digikod.net>
Fri, 28 Nov 2025 17:27:07 +0000 (18:27 +0100)
commit54f9baf537b0a091adad860ec92e3e18e0a0754c
tree22c42ec7de8384ce35c5710d76788fc7370eb23d
parenta18ee3f31fd714173a62515d049d77e76ab55649
selftests/landlock: Add disconnected leafs and branch test suites

Test disconnected directories with two test suites
(layout4_disconnected_leafs and layout5_disconnected_branch) and 43
variants to cover the main corner cases.

These tests are complementary to the previous commit.

Add test_renameat() and test_exchangeat() helpers.

Test coverage for security/landlock is 92.1% of 1927 lines according to
LLVM 20.

Cc: Günther Noack <gnoack@google.com>
Cc: Song Liu <song@kernel.org>
Cc: Tingmao Wang <m@maowtm.org>
Link: https://lore.kernel.org/r/20251128172200.760753-5-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c