aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/net/config
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2021-06-23 15:56:46 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-24 11:13:05 -0700
commitae24bab257bb2043b53c80e65cdd8b507ace06c4 (patch)
tree92f1ebcaf75924df966a07663215d8a77ba432d8 /tools/testing/selftests/net/config
parentnet: retrieve netns cookie via getsocketopt (diff)
downloadwireguard-linux-ae24bab257bb2043b53c80e65cdd8b507ace06c4.tar.xz
wireguard-linux-ae24bab257bb2043b53c80e65cdd8b507ace06c4.zip
tools/testing: add a selftest for SO_NETNS_COOKIE
Make sure that SO_NETNS_COOKIE returns a non-zero value, and that sockets from different namespaces have a distinct cookie value. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/config')
-rw-r--r--tools/testing/selftests/net/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index 614d5477365a..6f905b53904f 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -1,4 +1,5 @@
CONFIG_USER_NS=y
+CONFIG_NET_NS=y
CONFIG_BPF_SYSCALL=y
CONFIG_TEST_BPF=m
CONFIG_NUMA=y