From bd3902cb9351c37d8e348abcd95c83d267c0a106 Mon Sep 17 00:00:00 2001 From: "schitrod=cisco.com@lists.yoctoproject.org" Date: Mon, 15 May 2023 06:15:22 -0700 Subject: selinux: Set CVE_PRODUCT The CVE product name for selinux-* package is (usually) the selinux (and not our recipe name), so use selinux as the default. See also: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139897.html "Results from cve-check are not very good at the moment. One of the reasons for this is that component names used in CVE database differ from yocto recipe names. This series fixes several of those name mapping problems by setting the CVE_PRODUCT correctly in the recipes. To check this mapping with after a build, I'm exporting LICENSE and CVE_PRODUCT variables to buildhistory for recipes and packages." Value added is based on: https://nvd.nist.gov/vuln/search/results?results_type=overview&search_type=all&cpe_product=cpe%3A%2F%3Akernel%3Aselinux Signed-off-by: Sanjay Chitroda Signed-off-by: Joe MacDonald --- recipes-security/selinux/selinux_common.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-security/selinux/selinux_common.inc b/recipes-security/selinux/selinux_common.inc index 87e9231..145b21a 100644 --- a/recipes-security/selinux/selinux_common.inc +++ b/recipes-security/selinux/selinux_common.inc @@ -17,3 +17,5 @@ do_install() { LIBDIR="${libdir}" \ SHLIBDIR="${base_libdir}" } + +CVE_PRODUCT ?= "kernel:selinux" -- cgit v1.2.3-54-g00ecf