linux/tools/testing/selftests/landlock
Thomas Huth 5ab1dc6d11
selftests/landlock: Skip scoped_signal subtest with MSG_OOB if not available
MSG_OOB might be disabled in the kernel for unix sockets (by not
selecting CONFIG_AF_UNIX_OOB), and in this case the related tests
of the scoped_signal_test are currently failing.  Add a runtime
probe using socketpair() to detect MSG_OOB support and skip the
test gracefully if it is unavailable.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260710081642.405916-1-thuth@redhat.com
Cc: stable@vger.kernel.org
Fixes: f34e9ce5f4 ("selftests/landlock: Test signal created by out-of-bound message")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-07-10 12:59:11 +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 test for TCP fast open 2026-07-10 12:59:09 +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: Skip scoped_signal subtest with MSG_OOB if not available 2026-07-10 12:59:11 +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