Skip to content

Commit 0f1e631

Browse files
allow remediation for multicheck
1 parent 36bf193 commit 0f1e631

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,16 @@ int xccdf_policy_rule_result_remediate(struct xccdf_policy *policy, struct xccdf
518518
while (xccdf_check_iterator_has_more(check_it))
519519
check = xccdf_check_iterator_next(check_it);
520520
xccdf_check_iterator_free(check_it);
521-
if (check != NULL && xccdf_check_get_multicheck(check)) {
521+
522+
// this following condition seems to be unwanted, no standard specifies that
523+
// a fix shouldn't be ran for a multicheck.
524+
525+
/*if (check != NULL && xccdf_check_get_multicheck(check)) {
522526
// Do not try to apply fix for multi-check.
523527
_rule_add_info_message(rr, "cannot apply fix for multicheck.");
524528
xccdf_rule_result_set_result(rr, XCCDF_RESULT_ERROR);
525529
misc_error=1;
526-
}
530+
}*/
527531

528532
if(misc_error == 0){
529533
/* Initialize the fix. */

0 commit comments

Comments
 (0)