I'm trying to get started with making the latest clone from the git
repository and I get the following error:
[bpm]$ git clone
Cloning into 'scap-security-guide'...
remote: Counting objects: 14016, done.
remote: Compressing objects: 100% (5257/5257), done.
remote: Total 14016 (delta 10574), reused 10664 (delta 7718)
Receiving objects: 100% (14016/14016), 3.18 MiB | 2.17 MiB/s, done.
Resolving deltas: 100% (10574/10574), done.
[bpm]$ cd scap-security-guide/RHEL6/
[bpm]$ make all
xsltproc -o output/rhel6-shorthand.xml input/guide.xslt input/guide.xml
xmllint --format --output output/rhel6-shorthand.xml
xsltproc -o output/unlinked-noprofiles-rhel6-xccdf.xml
compilation error: file transforms/shorthand2xccdf.xslt line 19 element
xsl:attribute: The attribute name 'xmlns' is not allowed.
make: *** [shorthand2xccdf] Error 5
I've a fedora 18 , x86_64 installation.
"Shifts in paradigms
often cause nose bleeds."
I'm really interested in adding fixes, or having a set of fixes I can apply to
the xccdf for rhel6. I've looked at the line in the Makefile:
xsltproc -stringparam fixes "../$(IN)/fixes/bash-ks.xml" -o
and it looks like, following the bas-ks.xml, I can create a file with each fix
as long as each fix-id is the same as the rule-id so that the fix can be
merged with the appropriate rule into a final xccdf.xml file.
At least, that is what it seems. I uncommented the line in the Makefile and
remade it, however, nothing was added to the final xccdf.xml file, and there
are not any make errors, so
Any documentation or ideas where to look?
"My brain feels like its been sucked out through my ear."
-- [ Londo, "Born to the Purple"]
Walking through the initial setup was pretty quick an easy. I had no problems with the main wiki page and the usage guide page. I did find what appear to be small errors here and there, which I'll walk through.
The page titled "Becoming an SCAP Security Guide Developer" (https://fedorahosted.org/scap-security-guide/wiki/becomeadeveloper) seems to have a few issues.
First, under "Establishing your Accounts", there are three items all numbered 1.
Second, under "Performing your first git clone", the command example shows acquiring the source via git and the ssh protocol. This should fail as the Fedora Account setup and request to join this group (and gaining ssh access) happens in step 6 of the next section. Consider changing the protocol to git:
git clone git://git.fedorahosted.org/git/scap-security-guide.git
Third, under "Submitting Proposed Changes" step 1, the command example asks the user to ensure their changes are valid by running "make; make validate" without specifying a directory. With a little experimentation it is easy to figure out that "make" will work from the top level directory in the source tree, but "make validate" must be run from the RHEL6 directory. I'm not sure if validate should be added to the top level Makefile, or if a rewording of the item to clarify would be better.
With the exception of that page, I haven't found anything else. The pages are well thought out and I have yet to find even a spelling error in the wiki.
When running make, I get the following error
Duplicate ID, which will not be added: state_mode_0000
Duplicate ID, which will not be added: state_uid_0
Duplicate ID, which will not be added: state_gid_0
xmllint --format --output output/unlinked-rhel6-oval.xml output/unlinked-rhel6-oval.xml
transforms/cpe_generate.py output/unlinked-rhel6-oval.xml input/checks/platform/rhel6-cpe-dictionary.xml ssg
transforms/relabelids.py unlinked-rhel6-xccdf.xml ssg
transforms/relabelids.py unlinked-ocilrefs-rhel6-xccdf.xml ssg
mkdir -p dist/guide dist/content dist/policytables
cp output/rhel6-guide.html dist/guide
cp output/ssg-rhel6-xccdf.xml dist/content
cp output/ssg-rhel6-oval.xml dist/content
cp: cannot stat ‘output/ssg-rhel6-oval.xml’: No such file or directory
patch to get it to make correctly
[bpm]$ diff -wruN Makefile.orig Makefile
--- Makefile.orig 2013-01-30 13:47:55.554661112 -0600
+++ Makefile 2013-01-30 13:48:07.914662435 -0600
@@ -109,6 +109,7 @@
$(TRANS)/cpe_generate.py $(OUT)/unlinked-rhel6-oval.xml $(IN)/checks/platform/rhel6-cpe-dictionary.xml $(ID)
$(TRANS)/relabelids.py unlinked-rhel6-xccdf.xml $(ID)
$(TRANS)/relabelids.py unlinked-ocilrefs-rhel6-xccdf.xml $(ID)
+ $(TRANS)/relabelids.py unlinked-rhel6-oval.xml $(ID)
# not ready until oscap resolve behavior resolved
content-stig: shorthand2xccdf guide checks
"I'd like to live just long enough to be there when they cut off your
head and stick it on a pike as a warning to the next ten generations
that some favors some with too high a price. I want to look up into
your lifeless eyes and wave like this. Can you and your associates
arrange that for me, Mr. Morden?"
-- [ Vir (re: What do you want?), "In the Shadow of Z'Ha'Dum"]