Skip to content

Fix oscap.py for new versions of OpenSCAP #331

Merged
vikman90 merged 1 commit intomasterfrom
fix-oscap-script
Dec 28, 2017
Merged

Fix oscap.py for new versions of OpenSCAP #331
vikman90 merged 1 commit intomasterfrom
fix-oscap-script

Conversation

@chemamartinez
Copy link
Contributor

Since OpenSCAP v1.2.15 the profile listed by the OpenSCAP scanner adds a title field:

Profiles:
			Title: Standard System Security Profile
				Id: xccdf_org.ssgproject.content_profile_standard
			Title: PCI-DSS v3 Control Baseline for Red Hat Enterprise Linux 7
				Id: xccdf_org.ssgproject.content_profile_pci-dss
			Title: C2S for Red Hat Enterprise Linux 7
				Id: xccdf_org.ssgproject.content_profile_C2S

This PR adapts the oscap.py script in order to parse the profiles IDs from this new format.
It is also compatible with older versions of OpenSCAP.

Thanks to @xxywyc for the contribution.

@vikman90 vikman90 merged commit 7a9af22 into master Dec 28, 2017
@vikman90 vikman90 deleted the fix-oscap-script branch December 28, 2017 07:20
@vikman90 vikman90 changed the title Fix oscar.py for new versions of OpenSCAP Fix oscap.py for new versions of OpenSCAP Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants