openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: Anuj Mittal <anuj.mittal@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [honister][PATCH 03/12] cve-check: add lockfile to task
Date: Mon, 17 Jan 2022 10:10:23 +0800	[thread overview]
Message-ID: <53dc9b10eb5f064c68120337126f1542c1e0c832.1642385249.git.anuj.mittal@intel.com> (raw)
In-Reply-To: <cover.1642385249.git.anuj.mittal@intel.com>

From: Konrad Weihmann <kweihmann@outlook.com>

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: Anuj Mittal <anuj.mittal@intel.com>
---
 meta/classes/cve-check.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 70d1988a70..6c04ff9f09 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -111,6 +111,7 @@ python do_cve_check () {
 }
 
 addtask cve_check before do_build after do_fetch
+do_cve_check[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}"
 do_cve_check[depends] = "cve-update-db-native:do_fetch"
 do_cve_check[nostamp] = "1"
 
-- 
2.34.1



  parent reply	other threads:[~2022-01-17  2:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17  2:10 [honister][PATCH 00/12] Patch review Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 01/12] epiphany: Update 40.3 -> 40.6 Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 02/12] lib/oe/reproducible: correctly set .git location when recursively looking for git repos Anuj Mittal
2022-01-17  2:10 ` Anuj Mittal [this message]
2022-01-17  2:10 ` [honister][PATCH 04/12] xserver-xorg: whitelist two CVEs Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 05/12] rootfs-postcommands.bbclass: Make two comments use the new variable syntax Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 06/12] oeqa/sstate: Fix allarch samesigs test Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 07/12] linux-yocto/5.10: update to v5.10.89 Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 08/12] linux-yocto/5.14: fix arm 32bit -rt warnings Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 09/12] linux-yocto/5.10/cfg: add kcov feature fragment Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 10/12] linux-yocto/5.10: update to v5.10.90 Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 11/12] libsndfile1: fix CVE-2021-4156 Anuj Mittal
2022-01-17  2:10 ` [honister][PATCH 12/12] go: upgrade 1.16.10 -> 1.16.13 Anuj Mittal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53dc9b10eb5f064c68120337126f1542c1e0c832.1642385249.git.anuj.mittal@intel.com \
    --to=anuj.mittal@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).