]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve_check: skip remote patches that haven't been fetched when searching for CVE tags
authorRoss Burton <ross.burton@arm.com>
Wed, 27 Apr 2022 11:43:39 +0000 (12:43 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 10 Aug 2022 15:04:10 +0000 (05:04 -1000)
commita2d03f445c45558997484240d2549eaa1e103692
treec791c27b4703de947875e9fc3b791db103d66f8c
parentef3f5fba3c3b5e8b16d6b8b7721468e61c65f72f
cve_check: skip remote patches that haven't been fetched when searching for CVE tags

If a remote patch is compressed we need to have run the unpack task for
the file to exist locally.  Currently cve_check only depends on fetch so
instead of erroring out, emit a warning that this file won't be scanned
for CVE references.

Typically, remote compressed patches won't contain our custom tags, so
this is unlikely to be an issue.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cefc8741438c91f74264da6b59dece2e31f9e5a5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/cve_check.py