Skip to content

Commit

Permalink
Reintroduce image scanning for openSUSE and SLE
Browse files Browse the repository at this point in the history
Handle scanning of openSUSE and SUSE Linux Enterprise images.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
  • Loading branch information
flavio committed Nov 22, 2018
1 parent 52a42b8 commit 47c6299
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/clair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import (
_ "github.com/coreos/clair/ext/vulnsrc/debian"
_ "github.com/coreos/clair/ext/vulnsrc/oracle"
_ "github.com/coreos/clair/ext/vulnsrc/rhel"
_ "github.com/coreos/clair/ext/vulnsrc/suse"
_ "github.com/coreos/clair/ext/vulnsrc/ubuntu"
)

Expand Down
2 changes: 1 addition & 1 deletion ext/featurens/osrelease/osrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (d detector) Detect(files tarutil.FilesMap) (*database.Namespace, error) {
switch OS {
case "debian", "ubuntu":
versionFormat = dpkg.ParserName
case "centos", "rhel", "fedora", "amzn", "ol", "oracle":
case "centos", "rhel", "fedora", "amzn", "ol", "oracle", "opensuse", "sles":
versionFormat = rpm.ParserName
default:
return nil, nil
Expand Down
Loading

0 comments on commit 47c6299

Please sign in to comment.