meta-selinux/recipes-security/selinux/selinux_common.inc
schitrod=cisco.com@lists.yoctoproject.org bd3902cb93 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 <schitrod@cisco.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2023-05-31 09:43:14 -04:00

22 lines
506 B
PHP

HOMEPAGE = "https://github.com/SELinuxProject"
SRC_URI = "git://github.com/SELinuxProject/selinux.git;branch=master;protocol=https"
SRCREV = "d6e96c5929a3f1aa1dce93505edd9f0158757ac2"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
do_compile() {
oe_runmake all
}
do_install() {
oe_runmake install \
DESTDIR="${D}" \
PREFIX="${prefix}" \
INCLUDEDIR="${includedir}" \
LIBDIR="${libdir}" \
SHLIBDIR="${base_libdir}"
}
CVE_PRODUCT ?= "kernel:selinux"