From 44fc6f728eea9eda74244a2b826e4c1bd90c2998 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Fri, 13 Jan 2017 06:35:49 +0900 Subject: [PATCH] Fix RHEL5 scan stopped halfway --- scan/redhat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan/redhat.go b/scan/redhat.go index 8b13ac10..cbf9ed42 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -579,7 +579,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, return nil, fmt.Errorf("Not implemented yet: %s, err: %s", o.Distro, err) } - if o.Distro.Family == "centos" && major == 5 { + if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never list-security --security" } else { cmd = "yum --color=never updateinfo list available --security" @@ -623,7 +623,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, } // get advisoryID(RHSA, ALAS) - CVE IDs - if o.Distro.Family == "centos" && major == 5 { + if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never info-sec" } else { cmd = "yum --color=never updateinfo --security update"