GovReady / govready

Toolkit for getting open source apps ready for secure, approved government use
GNU General Public License v3.0
97 stars 31 forks source link

govready rule command appears broken when using default SSG xccdf #72

Open gregelin opened 9 years ago

gregelin commented 9 years ago

Added STIG SCAP and and tried to test individual rules only to find testing individual rule broken with the XCCDF.

It appears I need to add GovReadyfile variable for the correct *-oval.xml file and update _govoscap_rules_scan_info method to handle the variable.

OpenSCAP Error: Unable to open file: 'scans/variables.xml' [oscapxml.c:573]
Unable to open file: 'scans/variables.xml' [oval_parser.c:80]
No such file or directory 'scans/variables.xml' [oscapxml.c:312]
[GovReady] ...
[root@checklist fisma]# oscap oval eval --id oval:mil.disa.fso.redhat.rhel6:def:125 /usr/share/xml/scap/ssg/content/ssg-rhel6-oval.xml
Definition oval:mil.disa.fso.redhat.rhel6:def:125: not evaluated
OpenSCAP Error: No definition with ID: oval:mil.disa.fso.redhat.rhel6:def:125 in definition model. [oval_probe.c:338]
No definition with ID: oval:mil.disa.fso.redhat.rhel6:def:125 in result model. [oval_agent.c:184]
[root@checklist fisma]#