-
Notifications
You must be signed in to change notification settings - Fork 100
Add AlmaLinux and Rocky to RHEL family #186
Comments
@knqyf263 Thanks for PR merge. Is trivy ready for AlmaLinux scanning or more work/release required? |
Hi @srbala, we need to merge these two PRs in addition. But we're facing an issue. If there are two packages with the same name but different releases, how will the package used be selected? For example,
https://ftp.riken.jp/Linux/almalinux/8.3/AppStream/x86_64/os/Packages/
https://ftp.riken.jp/Linux/almalinux/8.4/AppStream/x86_64/os/Packages/ If we display details of nodje-packaging in AlmaLinux 8.4, it shows el8.3.0.
Also, there are two advisories respectively. Which advisory should we take? Or, if we should take both advisories, how can we select one of them for vulnerability detection? The website mentions only el8.4.0. Thanks. |
Three versions $ docker run --rm -it almalinux
[root@73296dbe39c0 /]# dnf module list nodejs
Name Stream Profiles Summary
nodejs 10 [d] common [d], development, minimal, s2i Javascript runtime
nodejs 12 common [d], development, minimal, s2i Javascript runtime
nodejs 14 common [d], development, minimal, s2i Javascript runtime
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@73296dbe39c0 /]# dnf info nodejs-packaging
Available Packages
Name : nodejs-packaging
Version : 17
Release : 3.module_el8.3.0+2047+b07ac28e
Architecture : noarch
Size : 19 k
Source : nodejs-packaging-17-3.module_el8.3.0+2047+b07ac28e.src.rpm
Repository : appstream
Summary : RPM Macros and Utilities for Node.js Packaging
URL : https://fedoraproject.org/wiki/Node.js/Packagers
License : MIT
Description : This package contains RPM macros and other utilities useful for packaging
: Node.js modules and applications in RPM-based distributions.
[root@73296dbe39c0 /]# dnf module enable nodejs:14
Last metadata expiration check: 0:09:26 ago on Sun Sep 19 21:44:36 2021.
Dependencies resolved.
=============================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================
Enabling module streams:
nodejs 14
Transaction Summary
=============================================================================================================================================
Is this ok [y/N]: y
Complete!
[root@73296dbe39c0 /]# dnf info nodejs-packaging
Last metadata expiration check: 0:09:41 ago on Sun Sep 19 21:44:36 2021.
Available Packages
Name : nodejs-packaging
Version : 23
Release : 3.module_el8.4.0+2522+3bd42762
Architecture : noarch
Size : 23 k
Source : nodejs-packaging-23-3.module_el8.4.0+2522+3bd42762.src.rpm
Repository : appstream
Summary : RPM Macros and Utilities for Node.js Packaging
URL : https://fedoraproject.org/wiki/Node.js/Packagers
License : MIT
Description : This package contains RPM macros and other utilities useful for packaging
: Node.js modules and applications in RPM-based distributions. |
@knqyf263 As inidicated above both advisories are applicable since both versions are supported
|
Carl has some input in the thread below, might help here? |
@srbala Thanks for the explanation! I might not understand correctly, but if they are from different stream, why are there two fixed versions in the same advisory? There are nodejs-packaging-23-3.module_el8.4.0+2522+3bd42762 and nodejs-packaging-23-3.module_el8.3.0+2022+0cf59502. Also, the advisory says the stream nodejs:14.
Yes, I looked into it, but I still don't understand why the above advisory provides two fixed versions. |
@carlwgeorge @andrewlukoshko Please review above and advise |
I guess this advisory was ported from RHSA-2021:0551, but it looks like the fixed version of nodejs-nodemon is It would be really helpful if you tell us how we should handle the two fixed versions in Alma errata. |
@srbala @AndreyLevchenko Any updates? I wanted to include the AlmaLinux support in the next version. |
@knqyf263 My knowledge is limited, @jaboutboul is reaching out someone to review/response |
@knqyf263 Hello. Sorry for delay. |
@andrewlukoshko Thanks for the response! We saw two versions in ALSA-2021:0551:
In this case, |
@knqyf263 Let me discuss this with colleagues responsible for Errata. |
@knqyf263 Could you please make a workaround for such cases? |
OK, thanks for the confirmation. |
Add AlmaLinux and Rocky distribution names to RHEL OS family for identification
https://github.com/aquasecurity/trivy/issues?q=is%3Aissue+is%3Aopen+almalinux
The text was updated successfully, but these errors were encountered: