diff --git a/network/filter/iptables/files/gentoo/iptables-1.8.9-format-security.patch b/network/filter/iptables/files/gentoo/iptables-1.8.9-format-security.patch new file mode 100644 index 0000000000..a95c436009 --- /dev/null +++ b/network/filter/iptables/files/gentoo/iptables-1.8.9-format-security.patch @@ -0,0 +1,26 @@ +https://git.netfilter.org/iptables/commit/?id=ed4082a7405a5838c205a34c1559e289949200cc + +From ed4082a7405a5838c205a34c1559e289949200cc Mon Sep 17 00:00:00 2001 +From: Phil Sutter +Date: Thu, 12 Jan 2023 14:38:44 +0100 +Subject: extensions: NAT: Fix for -Werror=format-security + +Have to pass either a string literal or format string to xt_xlate_add(). + +Fixes: f30c5edce0413 ("extensions: Merge SNAT, DNAT, REDIRECT and MASQUERADE") +Signed-off-by: Phil Sutter +--- a/extensions/libxt_NAT.c ++++ b/extensions/libxt_NAT.c +@@ -424,7 +424,7 @@ __NAT_xlate(struct xt_xlate *xl, const struct nf_nat_range2 *r, + if (r->flags & NF_NAT_RANGE_PROTO_OFFSET) + return 0; + +- xt_xlate_add(xl, tgt); ++ xt_xlate_add(xl, "%s", tgt); + if (strlen(range_str)) + xt_xlate_add(xl, " to %s", range_str); + if (r->flags & NF_NAT_RANGE_PROTO_RANDOM) { +-- +cgit v1.2.3 + + diff --git a/network/filter/iptables/pspec.xml b/network/filter/iptables/pspec.xml index b4a7232b78..399e1f5378 100644 --- a/network/filter/iptables/pspec.xml +++ b/network/filter/iptables/pspec.xml @@ -12,7 +12,7 @@ app:console Firewall, NAT and packet mangling tools Contains iptables firewall, NAT and packet mangling tools. - https://www.netfilter.org/projects/iptables/files/iptables-1.8.8.tar.bz2 + https://www.netfilter.org/projects/iptables/files/iptables-1.8.9.tar.xz libmnl-devel libpcap-devel @@ -24,8 +24,7 @@ iptables-1.4.2-as-needed.patch iptables-1.4.2-no-ldconfig.patch --> - iptables-1.8.2-link.patch - 0001-xshared-Fix-build-for-Werror-format-security.patch + gentoo/iptables-1.8.9-format-security.patch @@ -68,6 +67,13 @@ + + 2023-01-13 + 1.8.9 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2022-08-03 1.8.8