From 0d2ac8872167ed30797a5dcd6cf158bab250c7bc Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Tue, 17 Sep 2013 21:06:23 +0200 Subject: Add remediation support --- xml/SCAP/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xml/SCAP/Makefile b/xml/SCAP/Makefile index 5964888..ac0b4e2 100644 --- a/xml/SCAP/Makefile +++ b/xml/SCAP/Makefile @@ -1,4 +1,4 @@ -all: report.html guide.html +all: report.html guide.html remediate.sh report.html: gentoo-cpe.xml gentoo-xccdf.xml gentoo-oval.xml oscap xccdf eval --cpe gentoo-cpe.xml --profile xccdf_org.gentoo.dev.swift_profile_default --results results-xccdf.xml --oval-results --report report.html gentoo-xccdf.xml @@ -6,7 +6,14 @@ report.html: gentoo-cpe.xml gentoo-xccdf.xml gentoo-oval.xml guide.html: gentoo-cpe.xml gentoo-xccdf.xml gentoo-oval.xml oscap xccdf generate guide --profile xccdf_org.gentoo.dev.swift_profile_default --output guide.html gentoo-xccdf.xml +remediate.sh: results-xccdf.xml + oscap xccdf generate fix --output remediate.sh results-xccdf.xml + chmod 0644 remediate.sh + eval: oscap xccdf eval --cpe gentoo-cpe.xml --profile xccdf_org.gentoo.dev.swift_profile_default gentoo-xccdf.xml -.PHONY: all eval +clean: + -rm results-xccdf.xml report.html guide.html gentoo-oval.xml.results.xml remediate.sh + +.PHONY: all eval clean -- cgit v1.2.3-65-gdbad