public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] cve-check: Log if CVE_STATUS set but not reported for component
@ 2024-02-23 21:08 simone.p.weiss
  2024-02-23 21:52 ` [OE-core] " Yoann CONGAL
  2024-02-24 14:28 ` Marko, Peter
  0 siblings, 2 replies; 6+ messages in thread
From: simone.p.weiss @ 2024-02-23 21:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Simone Weiß

From: Simone Weiß <simone.p.weiss@posteo.com>

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. 

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
---
 meta/classes/cve-check.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 5191d04303..b82a9e89ec 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -418,6 +418,9 @@ def check_cves(d, patched_cves):
             cves_status.append([product, False])
 
     conn.close()
+    diff_ignore = list(set(cve_ignore) - set(cves_ignored))
+    if diff_ignore:
+        bb.warn("Found CVE (%s) with CVE_STATUS set that is not found in database for this component" % " ".join(diff_ignore))
 
     if not cves_in_recipe:
         bb.note("No CVE records for products in recipe %s" % (pn))
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-24 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 21:08 [PATCH] cve-check: Log if CVE_STATUS set but not reported for component simone.p.weiss
2024-02-23 21:52 ` [OE-core] " Yoann CONGAL
2024-02-24  0:01   ` Simone Weiß
2024-02-24 14:28 ` Marko, Peter
2024-02-24 15:41   ` Simone Weiß
2024-02-24 15:53   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox