-
Notifications
You must be signed in to change notification settings - Fork 28
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
cvrf and cve endpoints don't list all package names that are listed on website for a given RHSA #72
Comments
Hi @brixt0n
In RHEL, there are many cases where multiple binary rpms are built from a single source rpm, e.g.: From openssl.src.rpm are built:
Or from httpd.src.rpm are built:
Or of course from mercurial.src.rpm:
In the case of RHSA-2017:2489 (xml), you have a bunch of rpms listed, but look closely and you'll see that (1) all of the packages are built from the same source rpm and (2) all of the listed packages depend on mercurial.rpm and (3) updating any one of the packages would require updating them all. I didn't make the decision to omit child packages from cvrf/cve data (yes you'll run into the same "issue" if you use the API's cve endpoint), and I've never read about it, but I can see the logic behind it and I can tell you that it's normal. (Aside: You can check out Red Hat and CVRF compatibility and it's linked Sample Red Hat Security Advisory in CVRF 1.1 format to learn a bit more about CVRF, though this specific issue of the format is not addressed.) Not sure what exactly you're looking for, but if you're wanting to check a system, you would be better off using existing tools (like the OpenSCAP vulnerability scanner that ships in RHEL) to operate on oval data. The oval data (e.g., xml) does include checks for all package names -- even though it could technically just list mercurial.rpm, since that's a dependency of all the others. Let me know if you have any more questions. |
Hi ryran That's some really useful information, thank you. My use case is around getting package names from a listing (e.g., rpm -qa) and then comparing these to names of packages which have been updated due to bugfixes. In that case, it sounds like implementing the API function calls myself and requesting the oval data may be the best way forward? Thanks again for taking the time to reply. |
I see.
Haha no not at all. Honestly it sounds like you're trying to invent the wheel when there are already multiple really good cars out there. :) The first thing I would recommend is simply that you use Alternatively, you could use Feel free to hit me back with more qs. Cheers. |
Thanks for the info ryran. I checked out Just to explain things a little more specifically, I would normally receive the output of Appreciate any further info on this, and getting an accurate comparison. |
I have the same confusion. I get Attach a snapshot since I doubt if I describe the question clearly. |
Great tool. I was using it to attempt to get all updated packages from the RHSA / CVRF reference. I used the python module as follows:
The json data returned here only included one updated package. However, visiting the errata page at https://access.redhat.com/errata/RHSA-2017:2489 and going to "Updated Packages", there are a whole raft of them.
The text was updated successfully, but these errors were encountered: