summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-12-08 12:27:14 +0100
committerSteve Sakoman <steve@sakoman.com>2025-12-17 08:48:37 -0800
commitf0d2110a3281f0413be4d56cef337f30a1a8dd3d (patch)
tree6098630110437546e1aa527e636bd59e1faa7a65 /meta
parentcc239ca412852bfde89bbaa5b3b6be96524bceb6 (diff)
downloadpoky-f0d2110a3281f0413be4d56cef337f30a1a8dd3d.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: 9e3c0ae261afb7b9ff9528dbc147fb6c89d5a624) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/libmicrohttpd/libmicrohttpd_1.0.1.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/libmicrohttpd/libmicrohttpd_1.0.1.bb b/meta/recipes-support/libmicrohttpd/libmicrohttpd_1.0.1.bb
index 0628ee71b5..a22b0c9342 100644
--- a/meta/recipes-support/libmicrohttpd/libmicrohttpd_1.0.1.bb
+++ b/meta/recipes-support/libmicrohttpd/libmicrohttpd_1.0.1.bb
@@ -19,9 +19,13 @@ PACKAGECONFIG ?= "curl https"
19 19
20PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl," 20PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,"
21PACKAGECONFIG[https] = "--enable-https,--disable-https,libgcrypt gnutls," 21PACKAGECONFIG[https] = "--enable-https,--disable-https,libgcrypt gnutls,"
22PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental,"
22 23
23do_compile:append() { 24do_compile:append() {
24 sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc 25 sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc
25} 26}
26 27
27BBCLASSEXTEND = "native nativesdk" 28BBCLASSEXTEND = "native nativesdk"
29
30CVE_STATUS[CVE-2025-59777] = "${@bb.utils.contains('PACKAGECONFIG', 'experimental', 'unpatched', 'not-applicable-config: experimental code not compiled', d)}"
31CVE_STATUS[CVE-2025-62689] = "${@bb.utils.contains('PACKAGECONFIG', 'experimental', 'unpatched', 'not-applicable-config: experimental code not compiled', d)}"