ssg.oval_object_model.oval_document module
- class ssg.oval_object_model.oval_document.OVALDocument[source]
Bases:
OVALContainer
- finalize_affected_platforms(env_yaml)[source]
Depending on your use-case of OVAL you may not need the <affected> element. Such use-cases including using OVAL as a check engine for XCCDF benchmarks. Since the XCCDF Benchmarks use cpe:platform with CPE IDs, the affected element in OVAL definitions is redundant and just bloats the files. This function removes all irrelevant affected platform elements from given OVAL tree. It then adds one platform of the product we are building.
- property product_name
- product_version = ''
- schema_version = '5.11'
- property ssg_version