ssg.build_derivatives module

Common functions for enabling derivative products

ssg.build_derivatives.add_cpe_item_to_dictionary(tree_root, product_yaml_path, cpe_ref, id_name, cpe_items_dir)[source]
ssg.build_derivatives.add_cpes(elem, namespace, mapping)[source]

Adds derivative CPEs next to RHEL ones, checks XCCDF elements of given namespace.

ssg.build_derivatives.add_element_to(oval_root, tag_name, component_element)[source]
ssg.build_derivatives.add_notice(benchmark, namespace, notice, warning)[source]

Adds derivative notice as the first notice to given benchmark.

ssg.build_derivatives.add_oval_components_to_oval_xml(oval_root, tag_name, component_dict)[source]
ssg.build_derivatives.add_oval_definition_to_cpe_oval(root, unlinked_oval_file_path, oval_def_id)[source]
ssg.build_derivatives.get_cpe_item(product_yaml, cpe_ref, cpe_items_dir)[source]
ssg.build_derivatives.get_cpe_oval_root(root)[source]
ssg.build_derivatives.profile_handling(tree_root, namespace)[source]
ssg.build_derivatives.remove_cce_reference(tree_root, namespace)[source]

Remove CCE identifiers from OVAL checks in XML tree

ssg.build_derivatives.remove_idents(tree_root, namespace, prod='RHEL')[source]

Remove product identifiers from rules in XML tree

ssg.build_derivatives.replace_platform(tree_root, namespace, product)[source]