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

failed to get modularitylabel on RedHat #1915

Closed
MaineK00n opened this issue May 10, 2024 · 1 comment · Fixed by #1381
Closed

failed to get modularitylabel on RedHat #1915

MaineK00n opened this issue May 10, 2024 · 1 comment · Fixed by #1381
Assignees
Labels

Comments

@MaineK00n
Copy link
Collaborator

What did you do? (required. The issue will be closed when not provided.)

failed to get modularitylabel on RedHat.

What did you expect to happen?

The modularitylabel of the package can be retrieved.

What happened instead?

  • Current Output
$ vuls scan
$ cat results/2024-05-10T15-38-01+0900/vagrant.json | jq .enabledDnfModules
(empty)

Steps to reproduce the behaviour

setup scan target

[vagrant@rhel8 ~]$ cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

[vagrant@rhel8 ~]$ sudo dnf install -y ipa-common
$ vuls scan vagrant
$ cat results/2024-05-10T15-38-01+0900/vagrant.json | jq .enabledDnfModules

Configuration (MUST fill this out):

  • Go version (go version):
    go version go1.22.0 linux/amd64

  • Go environment (go env):

  • Vuls environment:

Hash : 827f2cb

To check the commit hash of HEAD
$ vuls -v

or

$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD

  • config.toml:

  • command:

@MaineK00n MaineK00n added the bug label May 10, 2024
@MaineK00n MaineK00n self-assigned this May 10, 2024
@MaineK00n
Copy link
Collaborator Author

When installing with $ dnf install instead of $ dnf module install, [i] does not appear in the result of $ dnf module list, and it seems to fail to retrieve the enable module list.

[vagrant@rhel8 ~]$ dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Name                                             Stream                                      Profiles                                         Summary                                                              
idm                                              client [d][e]                               common [d]                                       RHEL IdM long term support client module                             
perl                                             5.26 [d][e]                                 common [d], minimal                              Practical Extraction and Report Language                             
perl-IO-Socket-SSL                               2.066 [d][e]                                common [d]                                       Perl library for transparent TLS                                     
perl-libwww-perl                                 6.34 [d][e]                                 common [d]                                       A Perl interface to the World-Wide Web                               
python36                                         3.6 [d][e]                                  build, common [d]                                Python programming language, version 3.6                             

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[vagrant@rhel8 ~]$ rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{MODULARITYLABEL}\n" | grep ^ipa
ipa-selinux 0 4.9.12 9.module+el8.9.0+20434+fb12cac3 noarch idm:client:8090020231017145328:d6281a3f
ipa-common 0 4.9.12 9.module+el8.9.0+20434+fb12cac3 noarch idm:client:8090020231017145328:d6281a3f

@MaineK00n MaineK00n linked a pull request May 10, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant