openscap

package
v2.4.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CPE             = "oval:org.open-scap.cpe.rhel:def:"
	CPEDict         = "/usr/share/openscap/cpe/openscap-cpe-oval.xml"
	CVEUrl          = "https://www.redhat.com/security/data/metrics/ds/"
	DistCVENameFmt  = "com.redhat.rhsa-RHEL%d.ds.xml.bz2"
	ArfResultFile   = "results-arf.xml"
	HTMLResultFile  = "results.html"
	TmpDir          = "/tmp"
	Linux           = "Linux"
	OpenSCAP        = "openscap"
	ImageShortIDLen = 11
	Unknown         = "Unknown"
	LinuxVersionPH  = "Unknown"
	OpenSCAPVersion = "1.2"

	CVEDetailsUrl = "https://cve.mitre.org/cgi-bin/cvename.cgi?name="
)

Variables

View Source
var (
	RHELDistNumbers = [...]int{5, 6, 7}
)

Functions

func NewDefaultScanner

func NewDefaultScanner(cveDir, resultsDir, CVEUrlAltPath string, html bool) iiapi.Scanner

NewDefaultScanner returns a new OpenSCAP scanner

func ParseResults

func ParseResults(report []byte) []iiapi.Result

Types

type OpenSCAPReport

type OpenSCAPReport struct {
	ArfBytes  []byte
	HTMLBytes []byte
}

OpenSCAPReport holds the both Arf and HTML versions of openscap report.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL