-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #4457 Signed-off-by: Fabrice Fontaine <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ | |
"dhclient", | ||
"dhcpcd", | ||
"dhcpd", | ||
"dlt_daemon", | ||
"dmidecode", | ||
"dnsmasq", | ||
"docker", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (C) 2024 Orange | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
|
||
""" | ||
CVE checker for dlt-daemon | ||
https://www.cvedetails.com/product/136117/Covesa-Dlt-daemon.html?vendor_id=29885 | ||
""" | ||
from __future__ import annotations | ||
|
||
from cve_bin_tool.checkers import Checker | ||
|
||
|
||
class DltDaemonChecker(Checker): | ||
CONTAINS_PATTERNS: list[str] = [] | ||
FILENAME_PATTERNS: list[str] = [] | ||
VERSION_PATTERNS = [ | ||
r"([0-9]+\.[0-9]+\.[0-9]+)\r?\n[A-Za-z0-9+_:%(), \[\]\.\-\r\n]*DLT(?:_| Package Version)" | ||
] | ||
VENDOR_PRODUCT = [("covesa", "dlt-daemon")] |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (C) 2024 Orange | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
mapping_test_data = [ | ||
{"product": "dlt-daemon", "version": "2.18.0", "version_strings": ["2.18.0\nDLT_"]} | ||
] | ||
package_test_data = [ | ||
{ | ||
"url": "http://ftp.debian.org/debian/pool/main/d/dlt-daemon/", | ||
"package_name": "dlt-daemon_2.18.0-1_amd64.deb", | ||
"product": "dlt-daemon", | ||
"version": "2.18.0", | ||
}, | ||
{ | ||
"url": "http://ftp.debian.org/debian/pool/main/d/dlt-daemon/", | ||
"package_name": "dlt-daemon_2.18.8-6_arm64.deb", | ||
"product": "dlt-daemon", | ||
"version": "2.18.8", | ||
}, | ||
] |