-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: discover deb file relationships in distroless images (#1901)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
- Loading branch information
1 parent
026be3c
commit 8219f8d
Showing
6 changed files
with
198 additions
and
65 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
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
2 changes: 2 additions & 0 deletions
2
syft/pkg/cataloger/deb/test-fixtures/image-distroless-deb/Dockerfile
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,2 @@ | ||
FROM scratch | ||
COPY . . |
30 changes: 30 additions & 0 deletions
30
...pkg/cataloger/deb/test-fixtures/image-distroless-deb/usr/share/doc/libsqlite3-0/copyright
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,30 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: sqlite3 | ||
Source: https://www.sqlite.org/cgi/src/dir?ci=trunk | ||
|
||
Files: * | ||
Copyright: D. Richard Hipp <drh@hwaci.com> | ||
License: public-domain | ||
The files listed have been put on the public domain by the sqlite3 | ||
contributors. | ||
|
||
Files: debian/* | ||
Copyright: 2006- Laszlo Boszormenyi (GCS) <gcs@debian.org>, | ||
2005-2006 Tomas Fasth <tomfa@debian.org>, | ||
2001-2005 Andreas Rottmann <rotty@debian.org> | ||
License: GPL-2+ | ||
This program is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 as published | ||
by the Free Software Foundation. | ||
. | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
for more details. | ||
. | ||
You should have received a copy of the GNU General Public License along | ||
with this package; if not, write to the Free Software Foundation, Inc., | ||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
. | ||
On Debian systems, the full text of the GNU General Public License | ||
version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. |
16 changes: 16 additions & 0 deletions
16
syft/pkg/cataloger/deb/test-fixtures/image-distroless-deb/var/lib/dpkg/status.d/libsqlite3-0
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,16 @@ | ||
Package: libsqlite3-0 | ||
Source: sqlite3 | ||
Version: 3.34.1-3 | ||
Architecture: arm64 | ||
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org> | ||
Installed-Size: 1490 | ||
Depends: libc6 (>= 2.29) | ||
Breaks: python-migrate (<< 0.11.0-4~), python3-migrate (<< 0.11.0-4~) | ||
Section: libs | ||
Priority: optional | ||
Multi-Arch: same | ||
Homepage: https://www.sqlite.org/ | ||
Description: SQLite 3 shared library | ||
SQLite is a C library that implements an SQL database engine. | ||
Programs that link with the SQLite library can have SQL database | ||
access without running a separate RDBMS process. |
6 changes: 6 additions & 0 deletions
6
...taloger/deb/test-fixtures/image-distroless-deb/var/lib/dpkg/status.d/libsqlite3-0.md5sums
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,6 @@ | ||
e11d70c96979a1328ae4e7e50542782b usr/lib/aarch64-linux-gnu/libsqlite3.so.0.8.6 | ||
9d8facc2fa9d2df52f1c7cb4e5fa4741 usr/share/doc/libsqlite3-0/README.Debian | ||
a58942e742f5056be0595e6ba69a323f usr/share/doc/libsqlite3-0/changelog.Debian.gz | ||
52317be84c3ca44b7888c6921131e37d usr/share/doc/libsqlite3-0/changelog.gz | ||
a856310354e6c8768e85b39ae838dd0a usr/share/doc/libsqlite3-0/changelog.html.gz | ||
be64db3e095486e5e105652c51199358 usr/share/doc/libsqlite3-0/copyright |