From 8c0e83ff1a0667402d93450891b56ccad411f1ba Mon Sep 17 00:00:00 2001 From: Ralph Siemsen Date: Wed, 28 Apr 2021 11:44:09 -0400 Subject: [PATCH] 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. Signed-off-by: Ralph Siemsen Signed-off-by: Bruce Ashfield --- .../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(+) diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb index 692438ec..8c4ba3be 100644 --- a/recipes-containers/docker-distribution/docker-distribution_git.bb +++ b/recipes-containers/docker-distribution/docker-distribution_git.bb @@ -69,3 +69,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" diff --git a/recipes-containers/docker/docker-ce_git.bb b/recipes-containers/docker/docker-ce_git.bb index 98353501..fb2d0915 100644 --- a/recipes-containers/docker/docker-ce_git.bb +++ b/recipes-containers/docker/docker-ce_git.bb @@ -131,3 +131,5 @@ FILES_${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker" FILES_${PN}-contrib += "${datadir}/docker/check-config.sh" RDEPENDS_${PN}-contrib += "bash" + +CVE_PRODUCT = "docker" diff --git a/recipes-containers/docker/docker-moby.bb b/recipes-containers/docker/docker-moby.bb index 9fbbce6c..9a53d263 100644 --- a/recipes-containers/docker/docker-moby.bb +++ b/recipes-containers/docker/docker-moby.bb @@ -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"