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

Difficulties in cross-clone version comparison #2451

Open
willmurphyscode opened this issue Feb 17, 2025 · 0 comments
Open

Difficulties in cross-clone version comparison #2451

willmurphyscode opened this issue Feb 17, 2025 · 0 comments

Comments

@willmurphyscode
Copy link
Contributor

willmurphyscode commented Feb 17, 2025

Consider two version numbers:

[root@19ac959dacf7 /]# rpmdev-vercmp 3:10.3.28-1.module_el8.3.0+757+d382997d 3:10.3.28-1.module+el8.3.0+10472+7adc332a
3:10.3.28-1.module_el8.3.0+757+d382997d < 3:10.3.28-1.module+el8.3.0+10472+7adc332a

This is correct! build 757 is earlier than build 10472. However, if we're comparing Centos8 artifacts against RHEL8 data (which we do), than it is incorrect, because the build numbers are not comparable.

In other words, when comparing module build numbers within RHEL itself, build number is potentially an important part of the version number. However, when comparing across clones (e.g. RHEL to centOS), the build number is not a valid part of the comparison.

We should investigate two different courses of action:

  1. For the RHEL clones that we compare to RHEL vulnerabilities, we should examine whether they have a reliable vuln feed we can use instead
  2. We should change Grype code so that the version comparison is aware of whether it is comparing across clones

Originally posted by @willmurphyscode in #2375 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant