future-architect/vuls


The issue has been closed
Fast scan always failed on RedHat8 #1503
shigechika posted onGitHub
What did you do? (required. The issue will be closed when not provided.)
vuls scan redhat8
What did you expect to happen?
Fast(non-root) scan wish work on RedHat8
RedHat8 could work above command with sudo(root privilege). CentOS8 stream could work above with non-root.
What happened instead?
- Current Output
[Jul 26 14:16:01] ERROR [localhost] Error on redhat8, err: [Failed to detect installed dnf modules:
github.com/future-architect/vuls/scanner.(*redhatBase).scanPackages
/home/vuls/go/src/github.com/future-architect/vuls/scanner/redhatbase.go:390
- Failed to dnf module list: execResult: servername: redhat8
cmd: /bin/ssh -tt -F /home/vuls/.ssh/config -l vuls -p 22 -i /home/vuls/.ssh/id_rsa -o PasswordAuthentication=no redhat8 stty cols 1000; dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
exitstatus: 1
stdout: 一時ファイルを作成できません: /var/cache/dnf/epel.solv.vdsykE
stderr:
err: %!s(<nil>):
github.com/future-architect/vuls/scanner.(*redhatBase).detectEnabledDnfModules
/home/vuls/go/src/github.com/future-architect/vuls/scanner/redhatbase.go:850]
Please re-run the command using -debug
and provide the output below.
Steps to reproduce the behaviour
Configuration (MUST fill this out):
- Go version (
go version
):
go version go1.18.3 linux/amd64
Go environment (
go env
):Vuls environment:
vuls-v0.19.8-build-20220724_083144_d1a617c
config.toml:
command:
[vuls@redhat8 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.2 (Ootpa)
[vuls@redhat8 ~]$ dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
一時ファイルを作成できません: /var/cache/dnf/epel.solv.tmdX79
[vuls@redhat8 ~]$ LANG=C dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
cannot create temporary file: /var/cache/dnf/epel.solv.YcIXEt