summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Weiß <simone.p.weiss@posteo.com>2024-02-24 08:18:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-24 16:10:23 +0000
commit296fdb6643dca484cd1f32cef51e3beeef8842c5 (patch)
treed5e612b0f0bb293cfd8832f3cc48e52ae5e3e98a
parent2bcd651a0871a2a3789c2f2907cb372ad45d9b14 (diff)
downloadpoky-296fdb6643dca484cd1f32cef51e3beeef8842c5.tar.gz
cve-check: Log if CVE_STATUS set but not reported for component
Log if the CVE_STATUS is set for a CVE, but the cve is not reported for a component. This should hopefully help to clean up not needed CVE_STATUS settings. (From OE-Core rev: 013d531a84fa08b6ae8a47bdf3ba1fa8f18ba270) Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/cve-check.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 5191d04303..56ba8bceef 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -418,6 +418,9 @@ def check_cves(d, patched_cves):
418 cves_status.append([product, False]) 418 cves_status.append([product, False])
419 419
420 conn.close() 420 conn.close()
421 diff_ignore = list(set(cve_ignore) - set(cves_ignored))
422 if diff_ignore:
423 oe.qa.handle_error("cve_status_not_in_db", "Found CVE (%s) with CVE_STATUS set that are not found in database for this component" % " ".join(diff_ignore), d)
421 424
422 if not cves_in_recipe: 425 if not cves_in_recipe:
423 bb.note("No CVE records for products in recipe %s" % (pn)) 426 bb.note("No CVE records for products in recipe %s" % (pn))