summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/misc.py
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2022-01-07 10:48:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-22 17:56:52 +0000
commit6ec2230291b61e33d70f98d0bec832d5ce3d06f4 (patch)
treebe856996e134403790cf4767e8ef279802edff44 /scripts/lib/wic/misc.py
parentee62d4540e6a2ad5d071209b7bef26b367719b42 (diff)
downloadpoky-6ec2230291b61e33d70f98d0bec832d5ce3d06f4.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: 3c69e4eb08701516150c78cf8b48f3e90d197b2b) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/misc.py')
0 files changed, 0 insertions, 0 deletions