From: Ross Burton Date: Mon, 11 Dec 2023 13:49:46 +0000 (+0000) Subject: go: set vendor in CVE_PRODUCT X-Git-Tag: uninative-4.4~760 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc3e9cce9e1a5aa5dc9a5ad4abdd4eb61f868d37;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git go: set vendor in CVE_PRODUCT It's not uncommon for specific third party modules to use "go" as the product[1]. However, the canonical CPE for the official Go language/runtime is always golang:go[2], so use that explicitly. [1] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-49292 [2] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-39320 Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-devtools/go/go-binary-native_1.20.12.bb b/meta/recipes-devtools/go/go-binary-native_1.20.12.bb index e555412a19c..41db2ada808 100644 --- a/meta/recipes-devtools/go/go-binary-native_1.20.12.bb +++ b/meta/recipes-devtools/go/go-binary-native_1.20.12.bb @@ -16,7 +16,7 @@ SRC_URI[go_linux_ppc64le.sha256sum] = "2ae0ec3736216dfbd7b01ff679842dc1bed365e53 UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P\d+(\.\d+)+)\.linux" -CVE_PRODUCT = "go" +CVE_PRODUCT = "golang:go" S = "${WORKDIR}/go" diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index 96e32eeb978..db165792dcb 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc @@ -20,7 +20,7 @@ B = "${S}" UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.src\.tar" # all recipe variants are created from the same product -CVE_PRODUCT = "go" +CVE_PRODUCT = "golang:go" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" SSTATE_SCAN_CMD = "true"