app-containers/docker: check for legacy iptables support with kernel >=6.17

Closes: https://bugs.gentoo.org/964720
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/44591
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte 2025-11-11 12:46:13 +01:00 committed by Sam James
parent cb0d6c4004
commit 3552578500
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -71,6 +71,13 @@ pkg_setup() {
"
WARNING_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: is required for bind-mounting /dev/mqueue into containers"
if kernel_is ge 6 17; then
CONFIG_CHECK+="
~IP_NF_IPTABLES_LEGACY
~NETFILTER_XTABLES_LEGACY
"
fi
if kernel_is lt 4 8; then
CONFIG_CHECK+="
~DEVPTS_MULTIPLE_INSTANCES