From f7c7889f48bc3fb815c5abd8463c38b877d44cb0 Mon Sep 17 00:00:00 2001 From: Ralph Siemsen Date: Wed, 28 Apr 2021 11:44:09 -0400 Subject: 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 --- recipes-containers/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 6bfc345c..71a88ace 100644 --- a/recipes-containers/docker-distribution/docker-distribution_git.bb +++ b/recipes-containers/docker-distribution/docker-distribution_git.bb @@ -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" diff --git a/recipes-containers/docker/docker-ce_git.bb b/recipes-containers/docker/docker-ce_git.bb index 6337bb71..ab6bdef9 100644 --- a/recipes-containers/docker/docker-ce_git.bb +++ b/recipes-containers/docker/docker-ce_git.bb @@ -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" diff --git a/recipes-containers/docker/docker-moby.bb b/recipes-containers/docker/docker-moby.bb index e94dfc2b..aadaf829 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" -- cgit v1.2.3-54-g00ecf