Message ID | 2b3d13a451e99db669977d4d1172653b736ae6e1.1646406001.git.steve@sakoman.com |
---|---|
State | Accepted, archived |
Commit | 2b3d13a451e99db669977d4d1172653b736ae6e1 |
Headers | show |
Series | [dunfell,01/18] libarchive: Fix for CVE-2021-36976 | expand |
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 6b627464a0..5369b7074c 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -323,7 +323,8 @@ def get_cve_info(d, cves): import sqlite3 cve_data = {} - conn = sqlite3.connect(d.getVar("CVE_CHECK_DB_FILE")) + db_file = d.expand("file:${CVE_CHECK_DB_FILE}?mode=ro") + conn = sqlite3.connect(db_file, uri=True) for cve in cves: for row in conn.execute("SELECT * FROM NVD WHERE ID IS ?", (cve,)):