Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer the package type from ELF package notes #3008

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Jul 2, 2024

This is a follow up from #2939 and #2890 , fixing package type for packages discovered from ELF notes. Today all ELF packages are shown as binary packages, and though thats technically true, we should be honoring the package type that the ELF package notes list. This is also more useful downstream in Grype to match vulnerabilities.

This PR updates the behavior of when OS packages should override binary packages, specifically when there is a .Metadata that indicates that the package originated from a binary package. This allows us to deduplicate packages when we can, but allow for the binary package to remain in some cases.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the bug Something isn't working label Jul 2, 2024
@wagoodman wagoodman requested a review from a team July 2, 2024 15:59
@wagoodman wagoodman self-assigned this Jul 2, 2024
@wagoodman wagoodman marked this pull request as draft July 2, 2024 17:39
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman marked this pull request as ready for review July 2, 2024 18:05
@wagoodman wagoodman merged commit 573440b into main Jul 2, 2024
11 checks passed
@wagoodman wagoodman deleted the binary-elf-pkg-type branch July 2, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants