feat(ubuntu): add test in gost/ubuntu

This commit is contained in:
MaineK00n
2021-06-23 05:22:50 +09:00
parent 287b0c31db
commit e3d4d5a2b4
2 changed files with 68 additions and 3 deletions

View File

@@ -29,8 +29,8 @@ func (ubu Ubuntu) supported(version string) bool {
return ok
}
// DetectUnfixed fills cve information that has in Gost
func (ubu Ubuntu) DetectUnfixed(r *models.ScanResult, _ bool) (nCVEs int, err error) {
// DetectCVEs fills cve information that has in Gost
func (ubu Ubuntu) DetectCVEs(r *models.ScanResult, _ bool) (nCVEs int, err error) {
ubuReleaseVer := strings.Replace(r.Release, ".", "", 1)
if !ubu.supported(ubuReleaseVer) {
logging.Log.Warnf("Ubuntu %s is not supported yet", r.Release)