On 1/30/13 2:51 PM, Brian Millett wrote:
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 wasn't able to duplicate the "cannot stat" error against the latest
HEAD. Could you do a git pull and see if you still receive the message?
Here's what I'm getting:
[shawn@rhel6 RHEL6]$ make clean; make content
......
oscap xccdf generate guide --profile allrules
output/unlinked-rhel6-xccdf-guide.xml > output/rhel6-guide.html
WARNING: Processing an unresolved XCCDF document. This may have
unexpected results.
xmlwf input/checks/*.xml
transforms/combinechecks.py input/checks > output/unlinked-rhel6-oval.xml
Duplicate ID, which will not be added: var_removable_partition
Duplicate ID, which will not be added: state_uid_0
Duplicate ID, which will not be added: state_gid_0
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
Duplicate ID, which will not be added: obj_package_gpg-pubkey
Duplicate ID, which will not be added: state_package_gpg-pubkey
Duplicate ID, which will not be added: obj_package_vlock
Duplicate ID, which will not be added: var_removable_partition
Duplicate ID, which will not be added: state_uid_root
Duplicate ID, which will not be added: state_uid_0
Duplicate ID, which will not be added: state_gid_0
Duplicate ID, which will not be added: obj_package_vsftpd
Duplicate ID, which will not be added: var_ssh_config_directory
Duplicate ID, which will not be added: obj_package_openldap-servers
Duplicate ID, which will not be added: object_etc_skel_files
Duplicate ID, which will not be added: var_samba_private_directory
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