]> code.ossystems Code Review - openembedded-core.git/commit
cve-check: add lockfile to task
authorKonrad Weihmann <kweihmann@outlook.com>
Fri, 7 Jan 2022 09:48:51 +0000 (10:48 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 12 Jan 2022 14:37:31 +0000 (04:37 -1000)
commit3c69e4eb08701516150c78cf8b48f3e90d197b2b
treead2b380f408b2d3affbd60459982d9a7d57f0255
parent1ed53d5cfc2be40b2d57b5392ec4d30313209934
cve-check: add lockfile to task

this should prevent running into the very rare error
sqlite3.OperationalError: attempt to write a readonly database

As highlighted by https://www.sqlite.org/faq.html#q5
it is likely that the adapter won't allow use multiple exec calls
at the same time.

So it's best to prevent multiple accesses at a time, by reusing
the already in place CVE_CHECK_DB_FILE_LOCK

YOCTO #14110

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 677f5741bd265be49d4a5bb933b3e8d8c4eec653)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass