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

feat!(scanner/redhatbase): change cmd in scanUpdatablePackages #2084

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaineK00n
Copy link
Collaborator

@MaineK00n MaineK00n commented Dec 11, 2024

TODO:

  • Check the switched version of yum/dnf/dnf5

What did you implement:

In Fedora 41, the package manager is now DNF5, and the existing repoquery command cannot be executed.
dnf and dnf5 have a subcommand called repoquery, and we will change the command to use that subcommand.
Also, you do not need to install yum-utils or dnf-utils to install the repoquery command.

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

$ vuls scan
[Dec 11 21:41:30]  INFO [localhost] vuls-v0.28.0-build-20241211_213827_8ab8366
[Dec 11 21:41:30]  INFO [localhost] Start scanning
[Dec 11 21:41:30]  INFO [localhost] config: /home/vuls/vuls/config.toml
[Dec 11 21:41:30]  INFO [localhost] Validating config...
[Dec 11 21:41:30]  INFO [localhost] Detecting Server/Container OS... 
[Dec 11 21:41:30]  INFO [localhost] Detecting OS of servers... 
[Dec 11 21:41:31]  INFO [localhost] (1/1) Detected: docker: fedora 41
[Dec 11 21:41:31]  INFO [localhost] Detecting OS of containers... 
[Dec 11 21:41:31]  INFO [localhost] Checking Scan Modes... 
[Dec 11 21:41:31]  INFO [localhost] Detecting Platforms... 
[Dec 11 21:41:33]  INFO [localhost] (1/1) docker is running on other
[Dec 11 21:41:33]  INFO [docker] Scanning OS pkg in fast-root mode
[Dec 11 21:41:34]  WARN [docker] Failed to detect a init system: File: /proc/1/exe -> /usr/sbin/sshd
[Dec 11 21:41:35]  WARN [localhost] Some warnings occurred during scanning on docker. Please fix the warnings to get a useful information. Execute configtest subcommand before scanning to know the cause of the warnings. warnings: [Failed to check EOL. Register the issue to https://github.com/future-architect/vuls/issues with the information in `Family: fedora Release: 41`]


Scan Summary
================
docker	fedora41	216 installed, 0 updatable

Warning: [Failed to check EOL. Register the issue to https://github.com/future-architect/vuls/issues with the information in `Family: fedora Release: 41`]



To view the detail, vuls tui is useful.
To send a report, run vuls report -h.

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n self-assigned this Dec 11, 2024
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