[Devel] [PATCH hci-8.1 v3 5/5] selftests: netfilter: account for a per-namespace nf_conntrack_expect_max
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Sep 24 14:06:10 MSK 2026
From: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
The test requires it to be settable from init_net only, while vz
virtualizes it deliberately:
commit 6d854968102f ("ve/netfilter: Implement pernet expect_max /
virtualize "net.netfilter.nf_conntrack_expect_max" sysctl")
https://virtuozzo.atlassian.net/browse/VSTOR-139651
Feature: fix vz selftests
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
Reviewed-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
v3: reflow the comment; wrap the commit reference at 74 columns.
---
tools/testing/selftests/net/netfilter/conntrack_resize.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/netfilter/conntrack_resize.sh b/tools/testing/selftests/net/netfilter/conntrack_resize.sh
index aa1ba07eaf50c..b5ce4f9b5d1b1 100755
--- a/tools/testing/selftests/net/netfilter/conntrack_resize.sh
+++ b/tools/testing/selftests/net/netfilter/conntrack_resize.sh
@@ -457,8 +457,10 @@ check_max_alias 262000
setup_ns nsclient1 nsclient2
-# check this only works from init_net
-for n in netfilter.nf_conntrack_buckets netfilter.nf_conntrack_expect_max net.nf_conntrack_max;do
+# check this only works from init_net.
+# nf_conntrack_expect_max is left out: vz virtualizes it on purpose,
+# see "ve/netfilter: Implement pernet expect_max".
+for n in netfilter.nf_conntrack_buckets net.nf_conntrack_max;do
check_sysctl_immutable "$nsclient1" "net.$n" 1
done
--
2.43.0
More information about the Devel
mailing list