]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/landlock: Enable the new CONFIG_AF_UNIX_OOB
authorMickaël Salaün <mic@digikod.net>
Tue, 11 Feb 2025 13:25:28 +0000 (14:25 +0100)
committerMickaël Salaün <mic@digikod.net>
Fri, 14 Feb 2025 08:23:06 +0000 (09:23 +0100)
Since commit 5155cbcdbf03 ("af_unix: Add a prompt to
CONFIG_AF_UNIX_OOB"), the Landlock selftests's configuration is not
enough to build a minimal kernel.  Because scoped_signal_test checks
with the MSG_OOB flag, we need to enable CONFIG_AF_UNIX_OOB for tests:

 #  RUN           fown.no_sandbox.sigurg_socket ...
 # scoped_signal_test.c:420:sigurg_socket:Expected 1 (1) == send(client_socket, ".", 1, MSG_OOB) (-1)
 # sigurg_socket: Test terminated by assertion
 #          FAIL  fown.no_sandbox.sigurg_socket
 ...

Cc: Günther Noack <gnoack@google.com>
Acked-by: Florent Revest <revest@chromium.org>
Link: https://lore.kernel.org/r/20250211132531.1625566-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/config

index 29af19c4e9f981923e231112efb5b4cf08dce3b4..361f94f8cb0d48e3eb0db955f48ed867c1db479a 100644 (file)
@@ -1,3 +1,4 @@
+CONFIG_AF_UNIX_OOB=y
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_SCHED=y
 CONFIG_INET=y