mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
iptables: upgrade 1.8.10 -> 1.8.11
0001-configure-Add-option-to-enable-disable-libnfnetlink.patch 0002-nft-ruleparse-Add-missing-braces-around-ternary.patch removed since they're included in 1.8.11 Changelog: https://netfilter.org/projects/iptables/files/changes-iptables-1.8.11.txt (From OE-Core rev: d12f4bf60cc45bf9f73f688000786cfea7a2faeb) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6326e8fefd
commit
594936b8ae
-53
@@ -1,53 +0,0 @@
|
|||||||
From 653db8b938166db7833135f615b90c38a3f27a30 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Maxin B. John" <maxin.john@intel.com>
|
|
||||||
Date: Thu, 25 Apr 2024 10:51:02 +0200
|
|
||||||
Subject: [PATCH] configure: Add option to enable/disable libnfnetlink
|
|
||||||
|
|
||||||
Default behavior (autodetecting) does not change, but specifying
|
|
||||||
either option would explicitly disable or enable libnfnetlink support,
|
|
||||||
and if the library is not found in the latter case, ./configure will error
|
|
||||||
out.
|
|
||||||
|
|
||||||
Upstream-Status: Backport [https://git.netfilter.org/iptables/commit/?id=653db8b938166db7833135f615b90c38a3f27a30]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Signed-off-by: Maxin B. John <maxin.john@intel.com>
|
|
||||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
|
||||||
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
||||||
---
|
|
||||||
configure.ac | 13 +++++++++++--
|
|
||||||
1 file changed, 11 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index d99fa3b9..2293702b 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -63,6 +63,9 @@ AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
|
|
||||||
AC_ARG_ENABLE([nftables],
|
|
||||||
AS_HELP_STRING([--disable-nftables], [Do not build nftables compat]),
|
|
||||||
[enable_nftables="$enableval"], [enable_nftables="yes"])
|
|
||||||
+AC_ARG_ENABLE([libnfnetlink],
|
|
||||||
+ AS_HELP_STRING([--disable-libnfnetlink], [Do not use netfilter netlink library]),
|
|
||||||
+ [enable_libnfnetlink="$enableval"], [enable_libnfnetlink="auto"])
|
|
||||||
AC_ARG_ENABLE([connlabel],
|
|
||||||
AS_HELP_STRING([--disable-connlabel],
|
|
||||||
[Do not build libnetfilter_conntrack]),
|
|
||||||
@@ -113,8 +116,14 @@ AM_CONDITIONAL([ENABLE_SYNCONF], [test "$enable_nfsynproxy" = "yes"])
|
|
||||||
AM_CONDITIONAL([ENABLE_NFTABLES], [test "$enable_nftables" = "yes"])
|
|
||||||
AM_CONDITIONAL([ENABLE_CONNLABEL], [test "$enable_connlabel" = "yes"])
|
|
||||||
|
|
||||||
-PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
|
|
||||||
- [nfnetlink=1], [nfnetlink=0])
|
|
||||||
+# If specified explicitly on the command line, error out when library was not found
|
|
||||||
+# Otherwise, disable and continue
|
|
||||||
+AS_IF([test "x$enable_libnfnetlink" = "xyes"],
|
|
||||||
+ [PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
|
|
||||||
+ [nfnetlink=1])],
|
|
||||||
+ [test "x$enable_libnfnetlink" = "xauto"],
|
|
||||||
+ [PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
|
|
||||||
+ [nfnetlink=1], [nfnetlink=0])])
|
|
||||||
AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1])
|
|
||||||
|
|
||||||
if test "x$enable_bpfc" = "xyes" || test "x$enable_nfsynproxy" = "xyes"; then
|
|
||||||
--
|
|
||||||
2.39.2
|
|
||||||
|
|
||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
From 2026b08bce7fe87b5964f7912e1eef30f04922c1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Phil Sutter <phil@nwl.cc>
|
|
||||||
Date: Fri, 26 Jan 2024 18:43:10 +0100
|
|
||||||
Subject: [PATCH] nft: ruleparse: Add missing braces around ternary
|
|
||||||
|
|
||||||
The expression evaluated the sum before the ternay, consequently not
|
|
||||||
adding target->size if tgsize was zero.
|
|
||||||
|
|
||||||
Identified by ASAN for a simple rule using standard target:
|
|
||||||
| # ebtables -A INPUT -s de:ad:be:ef:0:00 -j RETURN
|
|
||||||
| # ebtables -D INPUT -s de:ad:be:ef:0:00 -j RETURN
|
|
||||||
| =================================================================
|
|
||||||
| ==18925==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000120 at pc 0x7f627a4c75c5 bp 0x7ffe882b5180 sp 0x7ffe882b4928
|
|
||||||
| READ of size 8 at 0x603000000120 thread T0
|
|
||||||
| [...]
|
|
||||||
|
|
||||||
Upstream-Status: Backport [2026b08bce7fe87b5964f7912e1eef30f04922c1]
|
|
||||||
|
|
||||||
Fixes: 2a6eee89083c8 ("nft-ruleparse: Introduce nft_create_target()")
|
|
||||||
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
||||||
---
|
|
||||||
iptables/nft-ruleparse.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/iptables/nft-ruleparse.c b/iptables/nft-ruleparse.c
|
|
||||||
index 0bbdf44faf..3b1cbe4fa1 100644
|
|
||||||
--- a/iptables/nft-ruleparse.c
|
|
||||||
+++ b/iptables/nft-ruleparse.c
|
|
||||||
@@ -94,7 +94,7 @@ __nft_create_target(struct nft_xt_ctx *ctx, const char *name, size_t tgsize)
|
|
||||||
if (!target)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
- size = XT_ALIGN(sizeof(*target->t)) + tgsize ?: target->size;
|
|
||||||
+ size = XT_ALIGN(sizeof(*target->t)) + (tgsize ?: target->size);
|
|
||||||
|
|
||||||
target->t = xtables_calloc(1, size);
|
|
||||||
target->t->u.target_size = size;
|
|
||||||
+1
-3
@@ -13,10 +13,8 @@ SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.xz \
|
|||||||
file://iptables.rules \
|
file://iptables.rules \
|
||||||
file://ip6tables.service \
|
file://ip6tables.service \
|
||||||
file://ip6tables.rules \
|
file://ip6tables.rules \
|
||||||
file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \
|
|
||||||
file://0002-nft-ruleparse-Add-missing-braces-around-ternary.patch \
|
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "5cc255c189356e317d070755ce9371eb63a1b783c34498fb8c30264f3cc59c9c"
|
SRC_URI[sha256sum] = "d87303d55ef8c92bcad4dd3f978b26d272013642b029425775f5bad1009fe7b2"
|
||||||
|
|
||||||
SYSTEMD_SERVICE:${PN} = "\
|
SYSTEMD_SERVICE:${PN} = "\
|
||||||
iptables.service \
|
iptables.service \
|
||||||
Reference in New Issue
Block a user