ssg.build_ovals module
- class ssg.build_ovals.OVALBuilder(env_yaml, product_yaml_path, shared_directories, build_ovals_dir)[source]
Bases:
object
- ssg.build_ovals.finalize_affected_platforms(xml_tree, 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.
- ssg.build_ovals.oval_entities_are_identical(firstelem, secondelem)[source]
Check if OVAL entities represented by XML elements are identical Return: True if identical, False otherwise Based on: http://stackoverflow.com/a/24349916