Hello folks,
the attached change adds support for displaying of SCAP Security Guide
(horizontal) logo in the HTML form of the guide (within it's <front-matter>
element).
Since the <svg> inclusion requires openscap of version v1.0.9 (at least) to
be able to handle SVG images within benchmark's description / front-matter /
rear-matter elements properly, the display of the logo has been made conditional:
* the version of openscap package on the system is < 1.0.9, there will be
no change wrt to current <front-matter> content,
* the version of openscap package on the system is >= 1.0.9 (currently on
Fedora only), the SCAP Security Guide logo will be displayed (for now
just as plain image, without a href to Fedorahosted instance - this is another
feature that needs to be implemented in openscap first).
You can see the new output after applying the patch & building the RPM on
Fedora (with openscap = 1.0.9). On RHEL-6 there won't be any difference (for
now).
Testing report:
Tested the change on all of RHEL-6, RHEL-7 & Fedora-20, and seems to be working
properly (no change on RHEL-6, RHEL-7 & equipped with logo on Fedora).
Similar changes for RHEL-7 & Fedora transforms will follow shortly.
Please review.
Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team