Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix oscap.py for new versions of OpenSCAP #331

Merged
merged 1 commit into from Dec 28, 2017
Merged

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.

None yet

2 participants