openscap icon indicating copy to clipboard operation
openscap copied to clipboard

Cannot generate documentation of a profile contained in a tailoring file

Open bmx0r opened this issue 9 years ago • 3 comments

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

bmx0r avatar Aug 20 '15 11:08 bmx0r

Hi, thanks for your report!

We know about this and yeah, it's a real issue :-(

See https://fedorahosted.org/openscap/ticket/441

mpreisler avatar Aug 20 '15 12:08 mpreisler

Any news on this issue?

Also fedorahosted.org has been retired so the aforementioned ticket is not accessible any more.

vassilisp avatar Nov 28 '17 13:11 vassilisp

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

dahaic avatar Nov 29 '17 21:11 dahaic