fleet/server/vulnerabilities/oval/input/rpm_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
684 B
Go

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