I was looking at xccdf_item_get_default_score() function and I see that the
score calculation is not a simple:
(no.of passed rules/total rules)

The way the score is calculated, it seems that groups with lesser rules
have higher weight.

For example, in case 1 let's say there are 2 groups. Group A with 100 rules
and Group B with 1 rule. Let's say a rule in Group A fails. Then, the score
seems to be calculated as:
Score of Group A: (99*100)/100 = 99 ('99' is number of rules that passed
and each rule is given a score of 100 when it passes)
Then, we calculate the score of Group B: 100*1 = 100
Final score = (99 + 100)/2 = 199/2

Now in case 2 let's say the rule in group 2 fail,
Group A score = (100*100)/100 = 100
Group B score = 0
Final score = (0+100)/2 = 50

Note how the final results are different even though the number of rules
that failed are the same in both the cases. And rules have the same weight.

Is this intentional?

Thanks,
Ajay Nair
-- 
-- Ajay Nair
_______________________________________________
Open-scap-list mailing list
Open-scap-list@redhat.com
https://listman.redhat.com/mailman/listinfo/open-scap-list

Reply via email to