rpcbind: upgrade 1.2.8 -> 1.2.9
PATCH 1/2 rpcbind: upgrade 1.2.8 -> 1.2.9
From: Richard Purdie <[email protected]>
Includes fix for CVE-2026-16277
[1] https://nvd.nist.gov/vuln/detail/CVE-2026-16277
[2] https://security-tracker.debian.org/tracker/CVE-2026-16277
---
.../0001-systemd-use-EnvironmentFile.patch | 7 ++----
...pcbind_add_option_to_fix_port_number.patch | 25 ++++++++-----------
.../{rpcbind_1.2.8.bb => rpcbind_1.2.9.bb} | 2 +-
3 files changed, 14 insertions(+), 20 deletions(-)
rename meta/recipes-extended/rpcbind/{rpcbind_1.2.8.bb => rpcbind_1.2.9.bb} (96%)meta/recipes-extended/rpcbind/rpcbind/0001-systemd-use-EnvironmentFile.patch +2 -5
@@ -1,4 +1,4 @@ -From 87a9931e4aa97d7b6eb3b25f26444e30e45e3e41 Mon Sep 17 00:00:00 2001 +From 43908891b9344054e23a7d9f4d6fc5b34b2406cf Mon Sep 17 00:00:00 2001 From: Stefan Agner <[email protected]> Date: Wed, 27 Aug 2025 11:30:48 +0800 Subject: [PATCH] systemd: use EnvironmentFile
@@ -14,7 +14,7 @@ Signed-off-by: Hongxu Jia <[email protected]> 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac -index 6ede0af..d1ae5e4 100644 +index c46294c..1566386 100644 --- a/configure.ac +++ b/configure.ac @@ -86,5 +86,7 @@ AC_CHECK_HEADERS([nss.h])
@@ -42,6 +42,3 @@ index 771b944..5992098 100644 ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f [Install] --- -2.34.1 -
meta/recipes-extended/rpcbind/rpcbind/rpcbind_add_option_to_fix_port_number.patch +11 -14
@@ -1,4 +1,4 @@ -From 285c193dc94b53763ac8d6f91229eaab37d45fc6 Mon Sep 17 00:00:00 2001 +From fc77df5fed834dd1cffc8c58adb4a13a9b97f5cf Mon Sep 17 00:00:00 2001 From: Roy Li <[email protected]> Date: Wed, 27 Aug 2025 11:24:53 +0800 Subject: [PATCH] add option to make users able to use fixed port number
@@ -38,18 +38,18 @@ index 15b70f9..4a6ffbc 100644 .Fl h option is specified, diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c -index 1743dad..07a1c75 100644 +index 6d0d72d..2f10dac 100644 --- a/src/rpcb_svc_com.c +++ b/src/rpcb_svc_com.c -@@ -48,6 +48,7 @@ - #include <rpc/rpc.h> +@@ -49,6 +49,7 @@ + #include <rpc/rpc_com.h> #include <rpc/rpcb_prot.h> #include <rpc/svc_dg.h> +#include <rpc/rpc_com.h> #include <netconfig.h> #include <errno.h> #include <syslog.h> -@@ -497,6 +498,7 @@ xdr_opaque_parms(XDR *xdrs, struct r_rmtcall_args *cap) +@@ -499,6 +500,7 @@ xdr_opaque_parms(XDR *xdrs, struct r_rmtcall_args *cap) static struct rmtcallfd_list *rmthead; static struct rmtcallfd_list *rmttail;
@@ -57,7 +57,7 @@ index 1743dad..07a1c75 100644 int create_rmtcall_fd(struct netconfig *nconf) -@@ -504,6 +506,8 @@ create_rmtcall_fd(struct netconfig *nconf) +@@ -506,6 +508,8 @@ create_rmtcall_fd(struct netconfig *nconf) int fd; struct rmtcallfd_list *rmt; SVCXPRT *xprt;
@@ -66,7 +66,7 @@ index 1743dad..07a1c75 100644 if ((fd = __rpc_nconf2fd(nconf)) == -1) { if (debugging) -@@ -512,6 +516,19 @@ create_rmtcall_fd(struct netconfig *nconf) +@@ -514,6 +518,19 @@ create_rmtcall_fd(struct netconfig *nconf) nconf->nc_device, errno); return (-1); }
@@ -87,7 +87,7 @@ index 1743dad..07a1c75 100644 if (xprt == NULL) { if (debugging) diff --git a/src/rpcbind.c b/src/rpcbind.c -index bf7b499..7268907 100644 +index 4212377..7e7f79d 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -112,6 +112,7 @@ int runasdaemon = 0;
@@ -98,7 +98,7 @@ index bf7b499..7268907 100644 char **hosts = NULL; int nhosts = 0; -@@ -959,7 +960,7 @@ parseargs(int argc, char *argv[]) +@@ -963,7 +964,7 @@ parseargs(int argc, char *argv[]) { int c; oldstyle_local = 1;
@@ -107,7 +107,7 @@ index bf7b499..7268907 100644 switch (c) { case 'a': doabort = 1; /* when debugging, do an abort on */ -@@ -977,6 +978,9 @@ parseargs(int argc, char *argv[]) +@@ -981,6 +982,9 @@ parseargs(int argc, char *argv[]) if (hosts[nhosts - 1] == NULL) errx(1, "Out of memory"); break;
@@ -117,7 +117,7 @@ index bf7b499..7268907 100644 case 'i': insecure = 1; break; -@@ -999,7 +1003,7 @@ parseargs(int argc, char *argv[]) +@@ -1003,7 +1007,7 @@ parseargs(int argc, char *argv[]) break; #endif default: /* error */
@@ -126,6 +126,3 @@ index bf7b499..7268907 100644 exit (1); } } --- -2.34.1 -
meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb renamed from meta/recipes-extended/rpcbind/rpcbind_1.2.8.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ file://rpcbind_add_option_to_fix_port_number.patch \ file://0001-systemd-use-EnvironmentFile.patch \ " -SRC_URI[sha256sum] = "964132c389918e8964d7334936b6dd10ef025b300c6b29e693ba0f29550e3de5" +SRC_URI[sha256sum] = "ce5f1a87c566ef0b2897a28f50a75c1dc23fec413a46a7f4183423b6b6aa991b" inherit autotools update-rc.d systemd pkgconfig update-alternatives sourceforge-releases
Signature · 1 line
2.43.0
PATCH 2/2 rpcbind: Drop dependency on quota
From: Michal Sieron <[email protected]>
Originally added to provide rpcsvc/rquota.h header [1], it is no longer needed since at least v1.2.6 where [2] was merged.
Not sure why, but distros like Arch and Ubuntu (possibly others too) did not have this dependency at any point from what I could find. Anyway, this builds just fine without quota present.
[1]: https://git.openembedded.org/openembedded-core/commit/?h=4771f4af5926d724958ba7cf46b937c53babfc7c
[2]: git://linux-nfs.org/~steved/rpcbind
8bf0ce4a1858b5cd00440e416ecfe0fd74662a01
rpcbind: always use inline rpcsvc constants
--- meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb +1 -1
@@ -4,7 +4,7 @@ DESCRIPTION = "The rpcbind utility is a server that converts RPC \ SECTION = "console/network" HOMEPAGE = "http://sourceforge.net/projects/rpcbind/" BUGTRACKER = "http://sourceforge.net/tracker/?group_id=201237&atid=976751" -DEPENDS = "libtirpc quota" +DEPENDS = "libtirpc" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
Signature · 1 line
2.43.0