mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
Add support for MIT and Heimdal Kerberos 5 library detection (#4781)
* Add support for MIT and Heimdal Kerberos 5 library detection Signed-off-by: Nadim Zubidat <nadimz@users.noreply.github.com> * support 2-component case Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Nadim Zubidat <nadimz@users.noreply.github.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Nadim Zubidat <nadimz@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
co-authored by
Nadim Zubidat
Alex Goodman
parent
1746e96ad3
commit
e388b5249d
@@ -1620,6 +1620,40 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("haskell-cabal-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "krb5/1.18.4/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "krb5",
|
||||
Version: "1.18.4",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/krb5@1.18.4",
|
||||
Locations: locations("libkrb5.so.3.3"),
|
||||
Metadata: metadata("krb5-library"),
|
||||
},
|
||||
},
|
||||
{
|
||||
// base releases brand with a 2-component version (e.g. "krb5-1.17-final 1.17")
|
||||
logicalFixture: "krb5/1.17/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "krb5",
|
||||
Version: "1.17",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/krb5@1.17",
|
||||
Locations: locations("libkrb5.so.3.3"),
|
||||
Metadata: metadata("krb5-library"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "heimdal-krb5/7.8.0/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "heimdal-krb5",
|
||||
Version: "7.8.0",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/heimdal-krb5@7.8.0",
|
||||
Locations: locations("libkrb5.so.26.0.0"),
|
||||
Metadata: metadata("heimdal-krb5-library"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "nginx/1.25.1/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
|
||||
Reference in New Issue
Block a user