diff options
author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2017-07-20 16:23:11 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-24 09:12:28 +0100 |
commit | db8815abe3db60b0510fb378bf6d82172c2f2768 (patch) | |
tree | fffc47f1839c0fe6fecc0409775cc274ce6760e5 /scripts/lib/scriptutils.py | |
parent | 6650bd1b9c770b01525356f9a1fabd758360ee8f (diff) | |
download | openembedded-core-db8815abe3db60b0510fb378bf6d82172c2f2768.tar.gz openembedded-core-db8815abe3db60b0510fb378bf6d82172c2f2768.tar.bz2 openembedded-core-db8815abe3db60b0510fb378bf6d82172c2f2768.zip |
cve-check.bbclass: use "+git" as separator in PV instead of "git+"
PV is the recipe major version number. cve-check tries to map that to
NVD database release versions of the component. If the recipe sources
are taken from git, the PV can be automatically modified to include
git details, but the syntax is like 233+gitAUTOINC+a1e2ef7ec9.
In CVE checks we want to remove the git details and just use the major
version information, in this example 233.
Thus use "+git" as the separator and use the first part before the separator
as SW product version number in CVE check.
Fixes version number for e.g. systemd recipe. If systemd PV is
233+gitAUTOINC+a1e2ef7ec9 there will be no matches from CVE database where
latest release mentioned is plain 233. If the filter is set to +git, then
CVE PV is 233 and issues like this are detected by do_cve_check:
https://nvd.nist.gov/vuln/detail/CVE-2017-1000082
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions