Hello Bond,
thank you for your report.
----- Original Message -----
From: "Bond Masuda" <bond.masuda(a)hexadiam.com>
To: scap-security-guide(a)lists.fedorahosted.org
Sent: Saturday, July 4, 2015 7:33:26 AM
Subject: Re: Using the RHEL specific SCAP content for CentOS
Hi Gabe,
Thank you for your reply. I'm trying to use the 0.1.23 release, but having
issues building the content. The error I get is:
Skipping datastream composition, use OpenSCAP 1.2.2 or later!
mkdir -p dist/content
cp output/ssg-fedora-xccdf.xml dist/content
cp output/ssg-fedora-oval.xml dist/content
cp output/ssg-fedora-ds.xml dist/content
cp: cannot stat `output/ssg-fedora-ds.xml': No such file or directory
make[1]: *** [dist] Error 1
make[1]: Leaving directory `/root/scap-security-guide-0.1.23/Fedora'
make: *** [fedora] Error 2
I can reproduce that issue, when issuing just 'plain' "make" in the
scap-security-guide-0.1.23 folder. The issue is Fedora content by
default requires OVAL-5.11 language version already, and the version
of the openscap RPM you are trying to build Fedora content against
(openscap-1.0.8-1.0.1.el6.centos.1.x86_64) does not support OVAL-5.11
language version yet.
We will correct this problem in an official way in the upcoming 0.1.24
upstream release (should be available for download during next week).
For now please use the following workaround (in the scap-security-guide-0.1.23
directory after expanding the tarball), issue the following command:
# make SSG_VERSION_IS_GIT_SNAPSHOT=no rpm
This will correctly produce working RPM that can be subsequently used
on RHEL-6 / CentOS6 system.
The difference between calling just "make" without arguments, and the
more concrete Makefile target above being, that in the latter case
we won't be building Fedora content, and therefore the problematic
code part won't get touched / encountered.
I suspect the missing "ssg-fedora-ds.xml" has something to do with the
"Skipping datastream composition" message above?
I'm on CentOS6, and this is the version I got from the yum repos:
[root@openscap-testing scap-security-guide-0.1.23]# rpm -qa openscap\*
openscap-1.0.8-1.0.1.el6.centos.1.x86_64
openscap-content-1.0.8-1.0.1.el6.centos.1.noarch
openscap-utils-1.0.8-1.0.1.el6.centos.1.x86_64
So, is this a matter of not being compatible with the version of openscap I'm
using? Or, is the make process suppose to handle older versions of openscap
more gracefully?
As already mentioned, we will fix this officially in the upcoming 0.1.24 release
(you are correct it's possible to handle this case more gracefully). For now
please use the aforementioned workaround (different Makefile target) to produce
the RPM.
Hope the above being helpful.
Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team
Thanks,
-Bond
On 06/30/2015 03:54 PM, Gabe Alford wrote:
Hey Bond,
As of SCAP Security Guide release 0.1.23, CentOS content is now available
(any older version will require tweaking). See the announcement here:
https://lists.fedorahosted.org/pipermail/scap-security-guide/2015-June/00...
You can download and build the SSG content from
https://github.com/OpenSCAP/scap-security-guide
When you run the XCCDF, you have to specify the CentOS XCCDF like below:
# oscap xccdf eval --profile stig-rhel6-server-upstream \
--results /tmp/`hostname`-ssg-results.xml \
--report /tmp/`hostname`-ssg-results.html \
--cpe /usr/share/xml/scap/ssg/content/ssg-centos6-cpe-dictionary.xml \
/usr/share/xml/scap/ssg/content/ssg-centos6-xccdf.xml
Please note that I believe that ssg-centos6-cpe-dictionary.xml is not being
built with SSG. OpenSCAP is here:
https://github.com/openscap/openscap and
the announcement here: So I believe all that needs to be done is:
# oscap xccdf eval --profile stig-rhel6-server-upstream \
--results /tmp/`hostname`-ssg-results.xml \
--report /tmp/`hostname`-ssg-results.html \
/usr/share/xml/scap/ssg/content/ssg-centos6-xccdf.xml
Thanks,
Gabe
On Tue, Jun 30, 2015 at 3:56 PM, Bond Masuda < bond.masuda(a)hexadiam.com >
wrote:
Hello,
Is there a guide on how to use the RHEL SCAP content for CentOS? When I
try to use it, I get a lot of "Result: notapplicable". What needs to be
done?
I'm using it with OpenSCAP per the manual:
# oscap xccdf eval --profile stig-rhel6-server-upstream \
--results /tmp/`hostname`-ssg-results.xml \
--report /tmp/`hostname`-ssg-results.html \
--cpe /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-dictionary.xml \
/usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
TIA,
-Bond
--
SCAP Security Guide mailing list
scap-security-guide(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide
https://github.com/OpenSCAP/scap-security-guide/
--
SCAP Security Guide mailing list
scap-security-guide(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide
https://github.com/OpenSCAP/scap-security-guide/