Skip to content

Commit

Permalink
Search /usr/share for rpmdb to fix scan on ostree-managed images
Browse files Browse the repository at this point in the history
fixes: anchore#1755
Signed-off-by: Filip Pytloun <filip@pytloun.cz>
  • Loading branch information
fpytloun committed May 2, 2023
1 parent a42bac6 commit 24bc220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syft/pkg/rpm_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// Packages is the legacy Berkely db based format
// Packages.db is the "ndb" format used in SUSE
// rpmdb.sqlite is the sqlite format used in fedora + derivates
const RpmDBGlob = "**/var/lib/rpm/{Packages,Packages.db,rpmdb.sqlite}"
const RpmDBGlob = "**/{var/lib,usr/share}/rpm/{Packages,Packages.db,rpmdb.sqlite}"

// Used in CBL-Mariner distroless images
const RpmManifestGlob = "**/var/lib/rpmmanifest/container-manifest-2"
Expand Down

0 comments on commit 24bc220

Please sign in to comment.