Skip to contentSkip to conversation

docker: add CVE_PRODUCT to recipes

PATCH New Ralph Siemsen 1 participant 3 messages Apr 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 docker: add CVE_PRODUCT to recipes

Allows the yocto cve-checker to flag CVEs, which would otherwise go unreported due to the package name not matching NIST NVD data.

---
 .../docker-distribution/docker-distribution_git.bb              | 2 ++
 recipes-containers/docker/docker-ce_git.bb                      | 2 ++
 recipes-containers/docker/docker-moby.bb                        | 2 ++
 3 files changed, 6 insertions(+)
recipes-containers/docker-distribution/docker-distribution_git.bb +2 -0
index 6bfc345..71a88ac 100644
@@ -70,3 +70,5 @@ SYSTEMD_SERVICE_docker-registry = "${@bb.utils.contains('DISTRO_FEATURES','syste
 SYSTEMD_AUTO_ENABLE_docker-registry = "enable"
 
 RDEPENDS_${PN}-ptest_remove = "${PN}"
+
+CVE_PRODUCT = "docker_registry"
recipes-containers/docker/docker-ce_git.bb +2 -0
index a107934..be45be2 100644
@@ -132,3 +132,5 @@ FILES_${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker"
 
 FILES_${PN}-contrib += "${datadir}/docker/check-config.sh"
 RDEPENDS_${PN}-contrib += "bash"
+
+CVE_PRODUCT = "docker"
recipes-containers/docker/docker-moby.bb +2 -0
index 31f3ce9..0e716db 100644
@@ -150,3 +150,5 @@ FILES_${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker"
 
 FILES_${PN}-contrib += "${datadir}/docker/check-config.sh"
 RDEPENDS_${PN}-contrib += "bash"
+
+CVE_PRODUCT = "docker"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/3 containerd: add CVE_PRODUCT to recipe

Allows the yocto cve-checker to flag CVEs, which would otherwise go unreported due to the package name not matching NIST NVD data.

---
 recipes-containers/containerd/containerd-opencontainers_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/containerd/containerd-opencontainers_git.bb +2 -0
index c0145b7..b4de3cb 100644
@@ -118,3 +118,5 @@ INSANE_SKIP_${PN} += "ldflags already-stripped"
 COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
 
 RDEPENDS_${BPN} += " virtual/runc"
+
+CVE_PRODUCT = "containerd"
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/3 runc: add CVE_PRODUCT to recipes

In reply to Ralph Siemsen

Allows the yocto cve-checker to flag CVEs, which would otherwise go unreported due to the package name not matching NIST NVD data.

---
 recipes-containers/runc/runc-docker_git.bb         | 2 ++
 recipes-containers/runc/runc-opencontainers_git.bb | 2 ++
 2 files changed, 4 insertions(+)
recipes-containers/runc/runc-docker_git.bb +2 -0
index d614fc4..ff142d0 100644
@@ -10,3 +10,5 @@ SRC_URI = "git://github.com/opencontainers/runc;nobranch=1;name=runc-docker \
           "
 
 RUNC_VERSION = "1.0.0-rc93"
+
+CVE_PRODUCT = "runc"
recipes-containers/runc/runc-opencontainers_git.bb +2 -0
index 425ce83..f3ff9a8 100644
@@ -6,3 +6,5 @@ SRC_URI = " \
     file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \
     "
 RUNC_VERSION = "1.0.0-rc93"
+
+CVE_PRODUCT = "runc"
Signature · 1 line
2.17.1