Skip to content

Commit

Permalink
fix: add glob to filter list to ensure rpm metadata files are matched…
Browse files Browse the repository at this point in the history
… when var/lib/rpm is a softlinked (#1077)

Signed-off-by: Daniel Nurmi <nurmi@anchore.com>
  • Loading branch information
nurmi authored and spiffcs committed Jun 30, 2022
1 parent bc054e4 commit 064854a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syft/pkg/relationships_by_file_ownership.go
Expand Up @@ -13,6 +13,7 @@ var globsForbiddenFromBeingOwned = []string{
ApkDBGlob,
DpkgDBGlob,
RpmDBGlob,
"**/rpm/{Packages,Packages.db,rpmdb.sqlite}",
// DEB packages share common copyright info between, this does not mean that sharing these paths implies ownership.
"/usr/share/doc/**/copyright",
}
Expand Down

0 comments on commit 064854a

Please sign in to comment.