Fix sudo option on Redhat like Linux, change some messages.

This commit is contained in:
kota kanbe
2016-04-12 01:14:40 +09:00
parent 3e846233a3
commit d750205f31
5 changed files with 31 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package scan
import (
"fmt"
"sort"
"github.com/Sirupsen/logrus"
@@ -52,6 +53,10 @@ func (l *linux) setDistributionInfo(fam, rel string) {
l.Release = rel
}
func (l *linux) getDistributionInfo() string {
return fmt.Sprintf("%s %s", l.Family, l.Release)
}
func (l *linux) convertToModel() (models.ScanResult, error) {
var cves, unknownScoreCves []models.CveInfo
for _, p := range l.UnsecurePackages {