Fix some errors and CVE issue
cover Fix some errors and CVE issue
Kai Kang (3):
quagga: fix CVE-2013-6051
quagga: fix QA warning
ndisc6: allow the package can be empty
Wenzong Fan (1):
radvd.init: fix path to radvd.conf sample
.../recipes-daemons/radvd/files/radvd.init | 2 +- .../quagga/files/quagga-fix-CVE-2013-6051.patch | 29 ++++++++++++++++++++++ .../recipes-protocols/quagga/quagga.inc | 2 ++ .../recipes-support/ndisc6/ndisc6_1.0.2.bb | 2 ++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch
Signature · 1 line
1.8.4
PATCH 1/4 radvd.init: fix path to radvd.conf sample
From: Wenzong Fan <[email protected]>
Correct the information that printed by radvd initscript.
--- meta-networking/recipes-daemons/radvd/files/radvd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/radvd/files/radvd.init +1 -1
@@ -64,7 +64,7 @@ chkconfig() { if [ ! -e $CONFIG -o ! -s $CONFIG ]; then echo "" echo "* $CONFIG does not exist or is empty." - echo "* See /usr/share/doc/radvd/examples/simple-radvd.conf for a simple" + echo "* See /usr/share/doc/radvd/radvd.conf.example for a simple" echo "* configuration suitable for most systems, and radvd.conf(5)" echo "* for configuration file syntax. radvd will *not* be started." exit 0
Signature · 1 line
1.8.4
PATCH 2/4 quagga: fix CVE-2013-6051
In reply to Kai KangBackport patch to fix CVE-2013-6051.
--- .../quagga/files/quagga-fix-CVE-2013-6051.patch | 29 ++++++++++++++++++++++ .../recipes-protocols/quagga/quagga.inc | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch
meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patch new file +29 -0
@@ -0,0 +1,29 @@ + +From 8794e8d229dc9fe29ea31424883433d4880ef408 +From: Paul Jakma <[email protected]> +Date: Mon, 13 Feb 2012 13:53:07 +0000 +Subject: bgpd: Fix regression in args consolidation, total should be inited from args + +bgpd: Fix regression in args consolidation, total should be inited from args + +* bgp_attr.c: (bgp_attr_unknown) total should be initialised from the args. + +Upstream-Status: Backport + +Signed-off-by: Kai Kang <[email protected]> +--- + +diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c +index 65af824..839f64d 100644 +--- a/bgpd/bgp_attr.c ++++ b/bgpd/bgp_attr.c + +@@ -1646,7 +1646,7 @@ + static bgp_attr_parse_ret_t + bgp_attr_unknown (struct bgp_attr_parser_args *args) + { +- bgp_size_t total; ++ bgp_size_t total = args->total; + struct transit *transit; + struct attr_extra *attre; + struct peer *const peer = args->peer;
meta-networking/recipes-protocols/quagga/quagga.inc +1 -0
@@ -26,6 +26,7 @@ QUAGGASUBDIR = "" SRC_URI = "http://download.savannah.gnu.org/releases/quagga${QUAGGASUBDIR}/quagga-${PV}.tar.gz;name=quagga-${PV} \ file://fix-for-lib-inpath.patch \ file://quagga-0.99.17-libcap.patch \ + file://quagga-fix-CVE-2013-6051.patch \ file://Zebra-sync-zebra-routing-table-with-the-kernel-one.patch \ file://quagga.init \ file://quagga.default \
Signature · 1 line
1.8.4
PATCH 3/4 quagga: fix QA warning
In reply to Kai KangWhen build quagga, it shows QA warnings:
WARNING: QA Issue: ELF binary '/home/build/poky/build/tmp/work/i586-poky-linux/quagga/0.99.21-r2.0/packages-split/quagga-bgpd/usr/sbin/bgpd' has relocations in .text
WARNING: QA Issue: ELF binary '/home/build/poky/build/tmp/work/i586-poky-linux/quagga/0.99.21-r2.0/packages-split/quagga-ripngd/usr/sbin/ripngd' has relocations in .text
The configure script tests compiler whether support option '-fPIE'. If support, it pass option '-fPIE' to compiler then cause these QA warnings.
Disable configure script to check option '-fPIC'.
--- meta-networking/recipes-protocols/quagga/quagga.inc | 1 + 1 file changed, 1 insertion(+)
meta-networking/recipes-protocols/quagga/quagga.inc +1 -0
@@ -62,6 +62,7 @@ EXTRA_OECONF = "--sysconfdir=${sysconfdir}/quagga \ --enable-logfile-mask=0640 \ --enable-rtadv \ --enable-linux24-tcp-md5 \ + ap_cv_cc_pie=no \ ${SNMP_CONF}" do_install () {
Signature · 1 line
1.8.4
PATCH 4/4 ndisc6: allow the package can be empty
In reply to Kai KangFILES_${PN} is set to null in original .bb file, this would cause ndisc6 main package is missing, then one build error will happen:
ERROR: ndisc6 not found in the base feeds (qemux86 i586 x86 noarch any all).
To fix this, need to set ALLOW_EMPTY_${PN} = "1".
--- meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb +2 -0
@@ -19,6 +19,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" inherit autotools gettext +ALLOW_EMPTY_${PN} = "1" + # Split into seperate packages since we normal don't want them all # The main package is left empty and therefore not created. PACKAGES += "${PN}-ndisc6 ${PN}-tcpspray6 ${PN}-rdisc6 \
Signature · 1 line
1.8.4
Merged the batch, thanks Kai.
-J.
Quoted 18 lines · [[oe] [meta-networking][PATCH 0/4] Fix some errors and CVE issue] On 14.04.21…
Kai Kang (3):
quagga: fix CVE-2013-6051
quagga: fix QA warning
ndisc6: allow the package can be emptyWenzong Fan (1):
radvd.init: fix path to radvd.conf sample.../recipes-daemons/radvd/files/radvd.init | 2 +- .../quagga/files/quagga-fix-CVE-2013-6051.patch | 29 ++++++++++++++++++++++ .../recipes-protocols/quagga/quagga.inc | 2 ++ .../recipes-support/ndisc6/ndisc6_1.0.2.bb | 2 ++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/quagga/files/quagga-fix-CVE-2013-6051.patchSignature · 1 line
1.8.4
Signature · 2 lines
-Joe MacDonald. :wq