I replaced the reference to disa-os-srg-v1r1.xml with disa-os-srg-v1r4.xml and 
the build goes ahead to fail here:

  File "../../shared/transforms/combineremediations.py", line 78, in 
fix_is_applicable_for_product
    product_name = map_product(product) + ' ' + product_version
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
make: *** [output/bash-remediations.xml] Error 1

The problem seems to be that combineremediations.py doesn't handle two digit 
version numbers:

    if match is not None:
        product_version = product[-1:]
        product = product[:-1]

    print ">>> Product = " + product + " version = " + product_version

Output:
>>> Product = sle1 version = 1

Upon fixing that, the error still persists because in map_product():

    if re.findall('opensuse', version):
        product_name = OPENSUSE
    if re.findall('suse', version):
        product_name = SUSE

But Product = 'sle'

Similar errors are present in combineovals.py.

With changes to that, it fails looking for "installed_OS_is_sle11". Looks like 
this is not implemented.

It looks like there might be more such bugs. Let me know if I can raise an 
issue and fix these.

Thank you.

Regards,
Gautam.
--
SCAP Security Guide mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]
https://github.com/OpenSCAP/scap-security-guide/

Reply via email to