When running a scan against profile from a tailoring file and the tailoring file references a benchmark that is not in the XCCDF file, the scanner outputs the rules that could not be found:
OpenSCAP Error: Selector ID(xccdf_org.ssgproject.content_rule_firefox_preferences-on-secure_page_warning) does not exist in Benchmark.
The resulting report has all rules from XCCDF file marked as 'notselected':
arf_report.xml.gz, which makes sense, but the exit status is 0.
Steps to reproduce:
- Use SCAP Workbench to create a tailoring file (based on Upstream Firefog STIG), unselect at least one rule.
- run a scan with tailoring file created in the previous step. Supply a XCCDF file different from what was used to create tailoring file (ssg-jave-ds.xml):
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-firefox-upstream_customized --tailoring-file ssg-firefox-ds-tailored.xml --results-arf arf.xml ssg-java-ds.xml
- Notice there will be errors (for each rule that was deselected in tailoring).
- run
echo $?, it will be 0
Is this intended bahavior? Why would exit status be 0, if there were clearly errors?
When running a scan against profile from a tailoring file and the tailoring file references a benchmark that is not in the XCCDF file, the scanner outputs the rules that could not be found:
OpenSCAP Error: Selector ID(xccdf_org.ssgproject.content_rule_firefox_preferences-on-secure_page_warning) does not exist in Benchmark.The resulting report has all rules from XCCDF file marked as 'notselected':
arf_report.xml.gz, which makes sense, but the exit status is 0.
Steps to reproduce:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-firefox-upstream_customized --tailoring-file ssg-firefox-ds-tailored.xml --results-arf arf.xml ssg-java-ds.xmlecho $?, it will be 0Is this intended bahavior? Why would exit status be 0, if there were clearly errors?