Skip to content

generate fix from XCCDF results & profile from tailoring file #524

Open
@ybznek

Description

@ybznek

Expected workflow:

  1. create tailoring file
  2. scan system using additional tailoring file
  3. generate fix

  • Problem occurs during generating fix

    oscap xccdf generate fix --template urn:xccdf:fix:script:ansible  /tmp/ssg-rhel7-ds-xccdf.results.xml
    
  • Doesn't generate any output.


Let's try to use --result-id

oscap xccdf generate fix --template urn:xccdf:fix:script:ansible --result-id xccdf_org.open-scap_testresult_xccdf_org.ssgproject.content_profile_pci-dss  /tmp/ssg-rhel7-ds-xccdf.results.xml 
#Warning: OpenSCAP will now use fallback mode (XSLT) to generate fixes. Some of the functionality might be missing (Text substitution, CPE processing, DataStream support, and tailoring). Please ommit --result-id option to trigger advanced processing.
legacy-fix.xsl has been deprecated!
I/O warning : failed to load external entity "legacy-fixtpl-urn:xccdf:fix:script:ansible.xml"
Fix template 'urn:xccdf:fix:script:ansible' failed to load. Aborting.

Let's try to use --profile-id
Oh, used profile id was from tailoring file and is not available from result file.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions