ssg.oval_object_model.oval_entities.definition module
- class ssg.oval_object_model.oval_entities.definition.Affected(tag, family)[source]
Bases:
OVALBaseObject
- finalize_affected_platforms(type_, full_name)[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.
- is_applicable_for_product(product_)[source]
Based on the <platform> specifier of the OVAL check determine if this OVAL check is applicable for this product. Return ‘True’ if so, ‘False’ otherwise
- platform_tag = 'platform'
- platforms = None
- product_tag = 'product'
- products = None
- class ssg.oval_object_model.oval_entities.definition.Criteria(tag)[source]
Bases:
GeneralCriteriaNode
- operator = 'AND'
- class ssg.oval_object_model.oval_entities.definition.Criterion(tag, ref)[source]
Bases:
TerminateCriteriaNode
- prefix_ref = 'test'
- class ssg.oval_object_model.oval_entities.definition.Definition(tag, id_, class_, metadata)[source]
Bases:
OVALComponent
- criteria = None
- class ssg.oval_object_model.oval_entities.definition.ExtendDefinition(tag, ref)[source]
Bases:
TerminateCriteriaNode
- prefix_ref = 'definition'
- class ssg.oval_object_model.oval_entities.definition.GeneralCriteriaNode(tag)[source]
Bases:
OVALBaseObject
- applicability_check = False
- comment = ''
- negate = False
- class ssg.oval_object_model.oval_entities.definition.Metadata(tag)[source]
Bases:
OVALBaseObject
- array_of_affected = None
- array_of_references = None
- description = ''
- description_tag = 'description'
- finalize_affected_platforms(type_, full_name)[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.
- is_applicable_for_product(product)[source]
Based on the <platform> specifier of the OVAL check determine if this OVAL check is applicable for this product. Return ‘True’ if so, ‘False’ otherwise
- title = ''
- title_tag = 'title'
- class ssg.oval_object_model.oval_entities.definition.Reference(tag, source, ref_id)[source]
Bases:
OVALBaseObject
- ref_url = ''
- class ssg.oval_object_model.oval_entities.definition.TerminateCriteriaNode(tag, ref)[source]
Bases:
GeneralCriteriaNode
- prefix_ref = ''