Skip to content

feat(RHEL): respect multiple RHSAs based on stream in version#3533

Draft
willmurphyscode wants to merge 1 commit into
anchore:mainfrom
willmurphyscode:rhel-stream-handling
Draft

feat(RHEL): respect multiple RHSAs based on stream in version#3533
willmurphyscode wants to merge 1 commit into
anchore:mainfrom
willmurphyscode:rhel-stream-handling

Conversation

@willmurphyscode

Copy link
Copy Markdown
Contributor

Previously, when multiple RHSAs fixed the same RPM in the same major version of RHEL, Grype was only able to match based on the one with the highest epoch-version-release (EVR). Change grype to now choose the right RHSA if multiple are available based on the elN_M suffix that the fixed versions carry.

Previously, when multiple RHSAs fixed the same RPM in the same major
version of RHEL, Grype was only able to match based on the one with the
highest epoch-version-release (EVR). Change grype to now choose the
right RHSA if multiple are available based on the elN_M suffix that the
fixed versions carry.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
// build matches an unaffected record and the matcher can drop the otherwise-false-positive
// disclosure - and report which advisory's fix the host already carries. The rpm-modularity
// qualifier mirrors the affected handle so modular hosts match the right stream.
func exactUnaffectedHandles(group groupIndex, fixedIns []unmarshal.OSFixedIn, vuln unmarshal.OSVulnerability, qualifiers *db.PackageQualifiers) []db.UnaffectedPackageHandle {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use package qualifiers to keep the matcher from having to be too smart here? Like a "RHEL Y Stream reachability" qualifier or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant