summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-12-08 12:27:20 +0100
committerSteve Sakoman <steve@sakoman.com>2025-12-12 08:49:37 -0800
commit33d90091be1b07f7909803270bf23af63398a44c (patch)
treed3d4973f88c62468be0b218436818f622f468e20
parent9f461395a832f5f3c5b69961cff944058d2fab27 (diff)
downloadpoky-33d90091be1b07f7909803270bf23af63398a44c.tar.gz
libmicrohttpd: disable experimental code by default
Introduce new packageconfig to explicitly avoid compilation of experimental code. Note that the code was not compiled by default also before this patch, this now makes it explicit and makes it possible to check for the flags in cve-check code. This is less intrusive change than a patch removing the code which was rejected in patch review. This will solve CVE-2025-59777 and CVE-2025-62689 as the vulnerable code is not compiled by default. Set appropriate CVE status for these CVEs based on new packageconfig. (From OE-Core rev: 1d8e646aebe75b8ede51d4de9e0003a822992a33) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb b/meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb
index ad3c34ab9e..264af6d81a 100644
--- a/meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb
+++ b/meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb
@@ -22,9 +22,12 @@ PACKAGECONFIG:append:class-target = "\
22PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," 22PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,,"
23PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl," 23PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,"
24PACKAGECONFIG[https] = "--enable-https,--disable-https,libgcrypt gnutls," 24PACKAGECONFIG[https] = "--enable-https,--disable-https,libgcrypt gnutls,"
25PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental,"
25 26
26do_compile:append() { 27do_compile:append() {
27 sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc 28 sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc
28} 29}
29 30
30BBCLASSEXTEND = "native nativesdk" 31BBCLASSEXTEND = "native nativesdk"
32
33CVE_CHECK_IGNORE += "${@bb.utils.contains('PACKAGECONFIG', 'experimental', '', 'CVE-2025-59777 CVE-2025-62689', d)}"