]> www.infradead.org Git - users/willy/linux.git/commit
selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns
authorMatteo Croce <teknoraver@meta.com>
Thu, 30 May 2024 23:27:22 +0000 (01:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Jun 2024 23:03:21 +0000 (16:03 -0700)
commit5b5233fb81bfecbfb7502178a9cf6790dde04a2c
tree3899e12f66e666e3da3c27452a21682462c07f9c
parent19249c0724f2048ab68179eac69004947b07d431
selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns

Add a selftest which checks that the sysctl is present in a netns,
that the value is read from the init one, and that it's readonly.

Signed-off-by: Matteo Croce <teknoraver@meta.com>
Link: https://lore.kernel.org/r/20240530232722.45255-3-technoboy85@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/netns-sysctl.sh [new file with mode: 0755]