summaryrefslogtreecommitdiffstats
path: root/meta/classes/cve-check.bbclass
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2021-08-05 18:50:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-18 18:00:19 +0100
commit2c99b4e9b3cedac6d6011a3afba5b743172979f6 (patch)
tree5096384dc3ff14dee444bae55dcd69ae5412601f /meta/classes/cve-check.bbclass
parent555a75484db5b818039f32c415a023ae055444b2 (diff)
downloadpoky-2c99b4e9b3cedac6d6011a3afba5b743172979f6.tar.gz
cve-check: improve comment about CVE patch file names
(From OE-Core rev: 3f5270d1c96f623c27043159f47a952dc24a565b) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8aa613480663e11ecc62278d8c57ca719eb23899) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r--meta/classes/cve-check.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index df6ebfd29d..f9e5cfa451 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -166,9 +166,12 @@ def get_patches_cves(d):
166 pn = d.getVar("PN") 166 pn = d.getVar("PN")
167 cve_match = re.compile("CVE:( CVE\-\d{4}\-\d+)+") 167 cve_match = re.compile("CVE:( CVE\-\d{4}\-\d+)+")
168 168
169 # Matches last CVE-1234-211432 in the file name, also if written 169 # Matches the last "CVE-YYYY-ID" in the file name, also if written
170 # with small letters. Not supporting multiple CVE id's in a single 170 # in lowercase. Possible to have multiple CVE IDs in a single
171 # file name. 171 # file name, but only the last one will be detected from the file name.
172 # However, patch files contents addressing multiple CVE IDs are supported
173 # (cve_match regular expression)
174
172 cve_file_name_match = re.compile(".*([Cc][Vv][Ee]\-\d{4}\-\d+)") 175 cve_file_name_match = re.compile(".*([Cc][Vv][Ee]\-\d{4}\-\d+)")
173 176
174 patched_cves = set() 177 patched_cves = set()