fleet/server/vulnerabilities/oval/input/dpkg_infotest.go
Juan Fernandez 9d01ba33c6
Feature 6096: Scan RHEL/CentOS hosts using OVAL definitions (#6241)
Extended the OVAL parser/analyzer so that we can scan RHEL based systems.
2022-06-23 16:44:45 -04:00

19 lines
695 B
Go

package oval_input
type dpkgInfoTestStateXML struct {
Id string `xml:"state_ref,attr"`
}
type dpkgInfoTestObjectXML struct {
Id string `xml:"object_ref,attr"`
}
// DpkgInfoTestXML see https://oval.mitre.org/language/version5.10.1/ovaldefinition/documentation/linux-definitions-schema.html#dpkginfo_test
type DpkgInfoTestXML struct {
Id string `xml:"id,attr"`
CheckExistence string `xml:"check_existence,attr"`
Check string `xml:"check,attr"`
StateOperator string `xml:"state_operator,attr"`
Object dpkgInfoTestObjectXML `xml:"object"`
States []dpkgInfoTestStateXML `xml:"state"`
}