You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I type cmd as below, fail items can be fixed correctly. # oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml ssg-xxx-ds.xml
but if I seperate it into 2 cmds as below, fix will fail. # oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml ssg-xxx-ds.xml
# oscap xccdf remediate scan_results.xml
So, what's the mistake in my cmd?
OpenSCAP Version:
1.3.9
Operating System & Version:
Steps to Reproduce:
Actual Results:
Expected Results:
Additional Information / Debugging Steps:
The text was updated successfully, but these errors were encountered:
jan-cerny
changed the title
it seems that remediate is not work if I call it seperated from eval cmd
Remediate does not work if called separately from eval cmd
Aug 2, 2024
I have investigated this issue. I have found that we have a bug related to CPE applicability of fixes. The remediation isn't performed because the fix is resolved as not applicable. Internally, it can't find any applicable fix. But, the XCCDF results file doesn't contain CPE definitions or CPE dictionaries, so it can't resolve the applicability.
Unfortunately, the oscap xccdf remediate module doesn't consume ARFs.
I'm not sure about how we can fix it. We can replace the call of _filter_fixes_by_applicability in src/XCCDF_POLICY/xccdf_policy_remediate.c in _find_suitable_fix by _get_fixes, which is a function that doesn't check CPE applicability. But this change would make the assertions in tests/API/XCCDF/applicability/test_remediate_fix_notapplicable.sh invalid.
Thanks!
Description of Problem:
if I type cmd as below, fail items can be fixed correctly.
# oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml ssg-xxx-ds.xml
but if I seperate it into 2 cmds as below, fix will fail.
# oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml ssg-xxx-ds.xml
# oscap xccdf remediate scan_results.xml
So, what's the mistake in my cmd?
OpenSCAP Version:
1.3.9
Operating System & Version:
Steps to Reproduce:
Actual Results:
Expected Results:
Additional Information / Debugging Steps:
The text was updated successfully, but these errors were encountered: