>From 01f8c68090a289bd254d82c8a7f9d596b5a8159a Mon Sep 17 00:00:00 2001 From: Jeffrey Blank Date: Fri, 13 Apr 2012 13:10:00 -0400 Subject: [PATCH] a transform for adding and some example files --- rhel6/src/Makefile | 2 + rhel6/src/input/fixes/bash.xml | 4 +++ rhel6/src/input/fixes/puppet-clip.xml | 4 +++ rhel6/src/transforms/xccdf-addfixes.xslt | 38 ++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 rhel6/src/input/fixes/bash.xml create mode 100644 rhel6/src/input/fixes/puppet-clip.xml create mode 100644 rhel6/src/transforms/xccdf-addfixes.xslt diff --git a/rhel6/src/Makefile b/rhel6/src/Makefile index 756f49f..cadafaf 100644 --- a/rhel6/src/Makefile +++ b/rhel6/src/Makefile @@ -13,6 +13,8 @@ shorthand-guide: shorthand2xccdf: xsltproc -o ${OUT}/rhel6-xccdf-noprofiles.xml ${TRANS}/shorthand2xccdf.xslt ${OUT}/rhel6-shorthand.xml xsltproc -stringparam profile "allprofiles" -o ${OUT}/rhel6-xccdf.xml ${TRANS}/xccdf-addprofiles.xslt ${OUT}/rhel6-xccdf-noprofiles.xml + xsltproc -stringparam fixes "../${IN}/fixes/bash.xml" -o ${OUT}/rhel6-xccdf.xml ${TRANS}/xccdf-addfixes.xslt ${OUT}/rhel6-xccdf.xml +# xsltproc -stringparam fixes "../${IN}/fixes/puppet-clip.xml" -o ${OUT}/rhel6-xccdf.html ${TRANS}/xccdf-addfixes.xslt ${OUT}/rhel6-xccdf.xml xmllint --format --output ${OUT}/rhel6-xccdf.xml ${OUT}/rhel6-xccdf.xml checks: diff --git a/rhel6/src/input/fixes/bash.xml b/rhel6/src/input/fixes/bash.xml new file mode 100644 index 0000000..7550b9f --- /dev/null +++ b/rhel6/src/input/fixes/bash.xml @@ -0,0 +1,4 @@ + +service vsftpd stop +yum install aide + diff --git a/rhel6/src/input/fixes/puppet-clip.xml b/rhel6/src/input/fixes/puppet-clip.xml new file mode 100644 index 0000000..18046b1 --- /dev/null +++ b/rhel6/src/input/fixes/puppet-clip.xml @@ -0,0 +1,4 @@ + +class vsftp +class aide + diff --git a/rhel6/src/transforms/xccdf-addfixes.xslt b/rhel6/src/transforms/xccdf-addfixes.xslt new file mode 100644 index 0000000..26a14bd --- /dev/null +++ b/rhel6/src/transforms/xccdf-addfixes.xslt @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 1.7.1