mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
fix: improve mariadb binary classifer to detect older versions (#3339)
With older versions of mariadb the binary name was `mysql`, so this adjusts the binary classifier to additionally search for the expected version pattern in `mysql` binaries. Signed-off-by: Weston Steimel <commits@weston.slmail.me>
This commit is contained in:
parent
754cebee64
commit
d7194bb00f
@ -351,7 +351,7 @@ func DefaultClassifiers() []Classifier {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Class: "mariadb-binary",
|
Class: "mariadb-binary",
|
||||||
FileGlob: "**/mariadb",
|
FileGlob: "**/{mariadb,mysql}",
|
||||||
EvidenceMatcher: FileContentsVersionMatcher(
|
EvidenceMatcher: FileContentsVersionMatcher(
|
||||||
// 10.6.15-MariaDB
|
// 10.6.15-MariaDB
|
||||||
`(?m)(?P<version>[0-9]+(\.[0-9]+)?(\.[0-9]+)?(alpha[0-9]|beta[0-9]|rc[0-9])?)-MariaDB`),
|
`(?m)(?P<version>[0-9]+(\.[0-9]+)?(\.[0-9]+)?(alpha[0-9]|beta[0-9]|rc[0-9])?)-MariaDB`),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user