Rule postfix_prevent_unrestricted_relay fails on STIG profile
Description of problem:
During first remediation of STIG profile, rule postfix_prevent_unrestricted_relay is not applicable because postfix is not installed.
During remediation package postfix is installed and the rule starts to fail.
SCAP Security Guide Version:
5caa381157e979f65cba48f5561beab8fa84c75d
Operating System Version:
RHEL-8
Steps to Reproduce:
- Remediate with STIG profile
- Verify that rule
postfix_prevent_unrestricted_relayis not applicable - Scan with the STIG profile
- Verify that rule
postfix_prevent_unrestricted_relayfails
Actual Results:
Rule is notapplicable during remediation but results in fail on subsequent scans
Expected Results:
The rule should evaluate to pass.
Additional Information/Debugging Steps:
This is another case of two remediation runs required.
The same problem also appears on RHEL 9.1 with STIG profile:
python3 /tmp/tmp.MYh8tUzM1Q/rpmbuild/BUILD/scap-security-guide-0.1.64/tests/test_suite.py profile --libvirt qemu:///system test_suite_vm --datastream /tmp/ssg-rhel9-ds.xml --xccdf-id scap_org.open-scap_cref_ssg-rhel9-xccdf-1.2.xml --mode online --remediate-using oscap xccdf_org.ssgproject.content_profile_stig
There is no easy fix - must be fixed on scanner side.
Closing, reported an issue in openscap - https://github.com/OpenSCAP/openscap/issues/1880