diff options
| author | Konrad Weihmann <kweihmann@outlook.com> | 2022-01-07 10:48:51 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-19 11:11:57 +0000 |
| commit | 79a6976be6a69a2c9f21d99b30d5a04310a94ada (patch) | |
| tree | 9bf3349d5b5f4f1c57f019911e58b1b17cf7e0cd /scripts/lib/checklayer/context.py | |
| parent | c5d4475bb35de90dbcc96a827c917e7d2615661f (diff) | |
| download | poky-79a6976be6a69a2c9f21d99b30d5a04310a94ada.tar.gz | |
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
(From OE-Core rev: 53dc9b10eb5f064c68120337126f1542c1e0c832)
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: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/checklayer/context.py')
0 files changed, 0 insertions, 0 deletions
