All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cve_check: Fix cpe_id generation
@ 2023-08-21 12:02 Jasper Orschulko
  2023-08-21 12:10 ` [OE-core] " Luca Ceresoli
  0 siblings, 1 reply; 3+ messages in thread
From: Jasper Orschulko @ 2023-08-21 12:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jasper Orschulko

Use "*" (wildcard) instead of "a" (application)in cpe_id generation,
as the product is not necessarily of type application, e.g.
linux_kernel, which is of type "o" (operating system).

Signed-off-by: Jasper Orschulko <jasper@fancydomain.eu>
---
 meta/lib/oe/cve_check.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py
index 5bf3caac47..3979d521d1 100644
--- a/meta/lib/oe/cve_check.py
+++ b/meta/lib/oe/cve_check.py
@@ -156,7 +156,7 @@ def get_cpe_ids(cve_product, version):
         else:
             vendor = "*"
 
-        cpe_id = 'cpe:2.3:a:{}:{}:{}:*:*:*:*:*:*:*'.format(vendor, product, version)
+        cpe_id = 'cpe:2.3:*:{}:{}:{}:*:*:*:*:*:*:*'.format(vendor, product, version)
         cpe_ids.append(cpe_id)
 
     return cpe_ids
-- 
2.41.0



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

end of thread, other threads:[~2023-08-21 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 12:02 [PATCH] cve_check: Fix cpe_id generation Jasper Orschulko
2023-08-21 12:10 ` [OE-core] " Luca Ceresoli
2023-08-21 13:10   ` jasper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.