]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/landlock: Skip scoped_signal subtest with MSG_OOB if not available
authorThomas Huth <thuth@redhat.com>
Fri, 10 Jul 2026 08:16:42 +0000 (10:16 +0200)
committerMickaël Salaün <mic@digikod.net>
Fri, 10 Jul 2026 10:59:11 +0000 (12:59 +0200)
commit5ab1dc6d110db6bee167a32fd94c53ea0e7ad6d2
tree964c235208983e019cc55fb88c28c6301ecab8b3
parentd793186aa3bb833c878ae6826c87e62c843afaa3
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: f34e9ce5f479 ("selftests/landlock: Test signal created by out-of-bound message")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/scoped_signal_test.c