mdns: Upgrade 2600.100.147 -> 2600.120.12
PATCH 1/1 mdns: Upgrade 2600.100.147 -> 2600.120.12
Drop redundant limit declaration patch. Swap issetugid()/getenv() call for secure_getenv() on Linux.
Signed-off-by Alex Kiernan <[email protected]>
---
.../0001-Use-secure_getenv-on-Linux.patch | 30 ++++++++++++
.../0005-Fix-missing-limit-declarations.patch | 49 -------------------
...ns_2600.100.147.bb => mdns_2600.120.12.bb} | 6 +--
3 files changed, 33 insertions(+), 52 deletions(-)
create mode 100644 meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch
delete mode 100644 meta-networking/recipes-protocols/mdns/mdns/0005-Fix-missing-limit-declarations.patch
rename meta-networking/recipes-protocols/mdns/{mdns_2600.100.147.bb => mdns_2600.120.12.bb} (97%)meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 1bf3be6cd775635aed95689f97a13fa6a037c741 Mon Sep 17 00:00:00 2001 +From: Alex Kiernan <[email protected]> +Date: Tue, 27 May 2025 13:33:30 +0100 +Subject: [PATCH] Use secure_getenv on Linux + +Upstream-Status: Inactive-Upstream [Upstream does not take patches] +Signed-off-by: Alex Kiernan <[email protected]> +--- + mDNSShared/dnssd_clientstub.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/mDNSShared/dnssd_clientstub.c b/mDNSShared/dnssd_clientstub.c +index 6667276ee33a..e7b51813664e 100644 +--- a/mDNSShared/dnssd_clientstub.c ++++ b/mDNSShared/dnssd_clientstub.c +@@ -801,10 +801,14 @@ static DNSServiceErrorType ConnectToServer(DNSServiceRef *ref, DNSServiceFlags f + #endif + #ifndef USE_TCP_LOOPBACK + char* uds_serverpath = NULL; ++#ifdef TARGET_OS_LINUX ++ uds_serverpath = secure_getenv(MDNS_UDS_SERVERPATH_ENVVAR); ++#else + if (!issetugid()) + { + uds_serverpath = getenv(MDNS_UDS_SERVERPATH_ENVVAR); + } ++#endif + if (uds_serverpath == NULL) + uds_serverpath = MDNS_UDS_SERVERPATH; + else if (strlen(uds_serverpath) >= MAX_CTLPATH)
meta-networking/recipes-protocols/mdns/mdns/0005-Fix-missing-limit-declarations.patch deleted +0 -49
49 lines not on this page · raw message
meta-networking/recipes-protocols/mdns/mdns_2600.120.12.bb renamed from meta-networking/recipes-protocols/mdns/mdns_2600.100.147.bb +3 -3
@@ -13,12 +13,12 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https file://0005-mDNSCore-Fix-broken-debug-parameter.patch \ file://0006-make-Add-top-level-Makefile.patch \ file://0009-remove-unneeded-headers.patch \ - file://0005-Fix-missing-limit-declarations.patch \ file://0001-Fix-build-with-gcc-15.patch \ + file://0001-Use-secure_getenv-on-Linux.patch \ file://mdns.service \ " -BRANCH = "main" -SRCREV = "d89f8d1d0e001b810d6c055aa2a57b768bcf9aa2" +BRANCH = "rel/mDNSResponder-2600" +SRCREV = "3a0deda2995d98243dae379bcec10e57928c15e8" # We install a stub Makefile in the top directory so that the various checks # in base.bbclass pass their tests for a Makefile, this ensures (that amongst