Skip to contentSkip to conversation

kubernetes: set CVE_VERSION explicitly

PATCH In review [email protected] 2 participants 2 messages Jul 24, 2023 – Jul 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kubernetes: set CVE_VERSION explicitly

From: Chen Qi <[email protected]>

The CVE_VERSION defaults to PV, but in NVD database, there's no prefixing 'v' in database. So set CVE_VERSION explicitly for better CVE scanning.

---
 recipes-containers/kubernetes/kubernetes_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/kubernetes/kubernetes_git.bb +1 -0
index 8b7c9e0..fefb2c1 100644
@@ -6,6 +6,7 @@ maintenance, and scaling of applications. \
 "
 
 PV = "v1.27.1+git${SRCREV_kubernetes}"
+CVE_VERSION = "1.27.1"
 SRCREV_kubernetes = "2555e0f90e80a13628f47eca5cde34decc89babb"
 SRCREV_kubernetes-release = "21382abdbfa8e6a43fd417306fa649cb651cc06e"
 PE = "1"
Signature · 1 line
2.34.1
#1 lore raw

We could also do this programatically via a simple inline python, that way it won't be missed during uprev's.

I'll take care of that shortly, as I'm upreving
packages at the moment.

Bruce

In message: [meta-virtualization][PATCH] kubernetes: set CVE_VERSION explicitly

Quoted 36 lines · on 24/07/2023 Chen Qi via lists.yoctoproject.org wrote:

From: Chen Qi <[email protected]>

The CVE_VERSION defaults to PV, but in NVD database, there's no prefixing 'v' in database. So set CVE_VERSION explicitly for better CVE scanning.

---
 recipes-containers/kubernetes/kubernetes_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/kubernetes/kubernetes_git.bb +1 -0
index 8b7c9e0..fefb2c1 100644
@@ -6,6 +6,7 @@ maintenance, and scaling of applications. \
 "
 
 PV = "v1.27.1+git${SRCREV_kubernetes}"
+CVE_VERSION = "1.27.1"
 SRCREV_kubernetes = "2555e0f90e80a13628f47eca5cde34decc89babb"
 SRCREV_kubernetes-release = "21382abdbfa8e6a43fd417306fa649cb651cc06e"
 PE = "1"
Signature · 11 lines
2.34.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8130): https://lists.yoctoproject.org/g/meta-virtualization/message/8130
Mute This Topic: https://lists.yoctoproject.org/mt/100322950/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-