openscap
openscap copied to clipboard
Cannot generate documentation of a profile contained in a tailoring file
Hi all, I recently created a tailoring file with oscap-workbench based on a profile contained in the SSG. I wanted to generate the documentation with the following command:
oscap xccdf generate guide --tailoring-file -pci-rhel6-tailoring.xml --profile Mypersonalised_profile ../content/ssg-centos6-xccdf.xml > guide/MyprofileDocumentation.html
Unfortuantely, the " --tailoring-file" do not exist...
I do know if this is really an issue, maybe there is another way, but i could not find out how
Regards Mike
Hi, thanks for your report!
We know about this and yeah, it's a real issue :-(
See https://fedorahosted.org/openscap/ticket/441
Any news on this issue?
Also fedorahosted.org has been retired so the aforementioned ticket is not accessible any more.
Hi @vassilisp,
thanks for pointing this fedorahosted problem. The issue is still present, and oscap xccdf generate guide
does not handle tailoring file directly. What you CAN do is to workaround it with help of this nice script:
https://github.com/mpreisler/combine-tailoring/blob/master/combine-tailoring.py
Use this to create new DataStream out of your tailoring and original DS. Then reference your tailored profile as any other profile, and it will generate what you need.
oscap xccdf generate guide --profile xccdf_org.ssgproject.content_profile_C2S_customized combined-ds.xml > tailored-guide.html