backport: allow to extract all CVE_STATUS info
Hello,
Please ignore this serie, it is not ready, and was sent by mistake... Really sorry.
Quoted 30 lines · Benjamin Robin (Schneider Electric)
From: "Benjamin Robin" <[email protected]>
The goal of this backport is to be able to extract all CVE annotations provided by the
CVE_STATUSand theCVE_STATUS_GROUPSvariables.Currently only CVEs with "Patched" status are exported in SPDX 3.0 files. And CVE annotations provided by the
CVE_STATUS_GROUPSvariable are not exported, since previously this was only handled by cve-check.bbclass.Also backport the vex.bbclass, which will help users to extract all the information needed to do a CVE analysis outside of Yocto.
With this backport, great care has been taken to avoid breaking compatibility. This is why the
get_patched_cves()API was not changed. Everything that was needed is implemented in the associated .bbclass.Benjamin Robin (5):
spdx30: provide allCVE_STATUS, not only Patched status vex.bbclass: add a new class
cve-check: extract extendingCVE_STATUSto library function
spdx: extendCVE_STATUSvariables
vex: fix rootfs manifestmeta/classes/cve-check.bbclass | 17 +- meta/classes/spdx-common.bbclass | 5 + meta/classes/vex.bbclass | 319 +++++++++++++++++++++++++++++++ meta/lib/oe/cve_check.py | 22 +++ meta/lib/oe/spdx30_tasks.py | 31 +-- 5 files changed, 365 insertions(+), 29 deletions(-) create mode 100644 meta/classes/vex.bbclass
Signature · 3 lines
Benjamin Robin, Bootlin Embedded Linux and Kernel engineering https://bootlin.com