]> code.ossystems Code Review - openembedded-core.git/commit
cve-check: get_cve_info should open the database read-only
authorRoss Burton <ross@burtonini.com>
Wed, 23 Feb 2022 12:54:31 +0000 (12:54 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 3 Mar 2022 17:43:07 +0000 (07:43 -1000)
commit2b3d13a451e99db669977d4d1172653b736ae6e1
tree08c0aa057fabb8f2bb327428762af6204bfc1ddf
parentc50688e1d0839d71e05a0d15dd948113d2ef83f6
cve-check: get_cve_info should open the database read-only

All of the function in cve-check should open the database read-only, as
the only writer is the fetch task in cve-update-db.  However,
get_cve_info() was failing to do this, which might be causing locking
issues with sqlite.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8de517238f1f418d9af1ce312d99de04ce2e26fc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass