Hi Pravin,
I had done a trial of a similar exercise recently and these are the
observations I have. Please note that my final intent was to create both XCCDF
and OVAL files, so some things might be relevant in your case. In case the
community is interested, I can make patches available.
Assuming you have a directory structure similar to "/RHEL/6" for "SLES/11" with
all the Make, python, template files etc. in place:
1) Change the platform CPE in <<SLES>>/input/guide.xml: <platform
idref="cpe:/o:suse:sles:11" />
3) MakeFile changes:
Renamed the product: PROD = sles11
Commented out the enable-derivative modules as they do not
recognize SLES anyhow.
4) Changed the CPE dictionary input/oval/platform/sles-cpe-dictionary.xml using
oscap CPE dictionary as reference.
5) Added the CPE OVAL implementation
../../shared/oval/installed_OS_is_sles11.xml
6) Modified python modules ../../shared/transforms/combineremediations.py and
../../shared/transforms/combineovals.py
a) Added MakeFile target mapping for SLES
b) Added SLES switch case in map_product()
c) Added support for multi-digit version number >>> Currently
the modules assume that the version number is the last one digit.
d) Added sles in multi-platform checks
7) Updated the OVAL file pointer in <xsl:variable name="ovalfile"> in
/input/transforms/shorthand2xccdf.xslt
8) I believe you can reuse the templates and Python modules that transform
them, they worked for me; I just updated the platform.
Thank you.
Regards,
Gautam.
_______________________________________________
Open-scap-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/open-scap-list