Skip to contentSkip to conversation

ovmf: set CVE_PRODUCT and CVE_VERSION

PATCH ChenQi 2 participants 2 messages Mar 27, 2024 – Apr 5, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ChenQi

author
#1 lore raw

ping

Quoted 34 lines · Chen Qi via lists.openembedded.org

From: Chen Qi <[email protected]>

Set CVE_PRODUCT and CVE_VERSION for ovmf. NVD uses 'edk2' and the version should be the date only. Here's an example:
https://nvd.nist.gov/vuln/detail/CVE-2023-45232

---
  meta/recipes-core/ovmf/ovmf_git.bb | 3 +++
  1 file changed, 3 insertions(+)
meta/recipes-core/ovmf/ovmf_git.bb +3 -1
index 3dc031d3b6..5b1353b8e8 100644
@@ -30,6 +30,9 @@ PV = "edk2-stable202308"
  SRCREV = "819cfc6b42a68790a23509e4fcc58ceb70e1965e"
  UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>edk2-stable.*)"
 
+CVE_PRODUCT = "edk2"
+CVE_VERSION = "${@d.getVar('PV').split('stable')[1]}"
+
  inherit deploy
 
  PARALLEL_MAKE = ""
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#196659): https://lists.openembedded.org/g/openembedded-core/message/196659
Mute This Topic: https://lists.openembedded.org/mt/104761710/3618072
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 14 lines · Chen Qi via lists.openembedded.org

ping

Quoted 11 lines · Chen Qi via lists.openembedded.org

From: Chen Qi <[email protected]>

Set CVE_PRODUCT and CVE_VERSION for ovmf. NVD uses 'edk2' and the version should be the date only. Here's an example:
https://nvd.nist.gov/vuln/detail/CVE-2023-45232

---
  meta/recipes-core/ovmf/ovmf_git.bb | 3 +++

  1 file changed, 3 insertions(+)
Quoted 13 lines
Quoted 12 lines
meta/recipes- renamed from meta/recipes-core/ovmf/ovmf_git.bb +0 -0

core/ovmf/ovmf_git.bb
index 3dc031d3b6..5b1353b8e8 100644

meta/recipes-core/ovmf/ovmf_git.bb +0 -0
@@ -30,6 +30,9 @@ PV = "edk2-stable202308"

  SRCREV = "819cfc6b42a68790a23509e4fcc58ceb70e1965e" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>edk2-stable.*)"

meta/recipes-core/ovmf/ovmf_git.bb +3 -0
+CVE_PRODUCT = "edk2"
+CVE_VERSION = "${@d.getVar('PV').split('stable')[1]}"
+
Quoted 1 line

  inherit deploy

I did merge this but it breaks the cve checks:

https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/1443/steps/15/logs/warnings

This needs to be fixed ASAP.

Cheers,

Richard