summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2005-12-24 09:37:23 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2005-12-24 09:37:23 +0000
commit962b3bf2ecef17a067b23e0ceedbc9ac5c0ab3f8 (patch)
treeeb68ad1083517cb68e0e970c97aee8a8f658e3f8 /lib
parentf39262672547f47507bdedd2488175628cbc786d (diff)
lib/python/security_db.py (DB.calculateDebsecan1):
Only include CVE-* and FAKE-* vulnerabilities in version 1 data. (The other data is redundant anyway, and no unstable vulnerability status information is available.) git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3147 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 632c2f1f1f..58af85213b 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1363,9 +1363,10 @@ class DB:
(SELECT range_remote FROM nvd_data
WHERE cve_name = p.bug_name)
FROM package_notes AS p, bugs AS b
- WHERE p.urgency <> 'unimportant'
+ WHERE (p.bug_name LIKE 'CVE-%' OR p.bug_name LIKE 'FAKE-%')
+ AND p.bug_name NOT LIKE 'FAKE-0000000-%'
+ AND p.urgency <> 'unimportant'
AND COALESCE(p.fixed_version, '') <> '0'
- AND name NOT LIKE 'FAKE-0000000-%'
AND p.package_kind IN ('source', 'binary', 'unknown')
AND b.name = p.bug_name
ORDER BY p.bug_name"""):
@@ -1401,7 +1402,8 @@ class DB:
for (bug, package) in list(c.execute(
"""SELECT DISTINCT bug_name, package
FROM package_notes
- WHERE bug_name NOT LIKE 'FAKE-0000000-%'
+ WHERE (bug_name LIKE 'CVE-%' OR bug_name LIKE 'FAKE-%')
+ AND bug_name NOT LIKE 'FAKE-0000000-%'
AND package_kind IN ('source', 'binary', 'unknown')
GROUP BY package, bug_name
ORDER BY package, bug_name""")):

© 2014-2024 Faster IT GmbH | imprint | privacy policy