]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: add coverage statistics on recipes with/without CVEs
authorMarta Rybczynska <rybczynska@gmail.com>
Tue, 29 Mar 2022 12:54:32 +0000 (14:54 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 7 Jun 2022 18:56:30 +0000 (08:56 -1000)
commitc63d06becc340270573bdef2630749db1f5230d4
tree16a1622613878f9924bbd040ce891ac09ca956bb
parent4c10ee956f21ea2f805403704ac3c54b7f1be78c
cve-check: add coverage statistics on recipes with/without CVEs

Until now the CVE checker was giving information about CVEs found for
a product (or more products) contained in a recipe. However, there was
no easy way to find out which products or recipes have no CVEs. Having
no reported CVEs might mean there are simply none, but can also mean
a product name (CPE) mismatch.

This patch adds CVE_CHECK_COVERAGE option enabling a new type of
statistics. Then we use the new JSON format to report the information.
The legacy text mode report does not contain it.

This option is expected to help with an identification of recipes with
mismatched CPEs, issues in the database and more.

This work is based on [1], but adding the JSON format makes it easier
to implement, without additional result files.

[1] https://lists.openembedded.org/g/openembedded-core/message/159873

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit d1849a1facd64fa0bcf8336a0ed5fbf71b2e3cb5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass