if ($status eq "Not affected") {
$status_message = $Lang::tr{'not affected'};
$colour = "white";
- $bgcolour = ${Header::colourblack};
+ $bgcolour = ${Header::colourgreen};
# Vulnerable
} elsif ($status eq "Vulnerable") {
$colour = "white";
$bgcolour = ${Header::colourred};
- # Mitigated but smt is enabled
- } elsif ($status eq "Mitigation-SMT") {
- $status_message = $Lang::tr{'mitigated'};
- $colour = "white";
- $bgcolour = ${Header::colourred};
-
# Mitigated
} elsif ($status eq "Mitigation") {
$status_message = $Lang::tr{'mitigated'};
$colour = "white";
- $bgcolour = ${Header::colourgreen};
+ $bgcolour = ${Header::colourblue};
# Unknown report from kernel
} else {
<font color="$colour">
END
if ($message) {
- print "<strong>$status_message</strong>: $message";
+ print "<strong>$status_message</strong> - $message";
} else {
print "<strong>$status_message</strong>";
}
my $status = <FILE>;
close(FILE);
+ chomp($status);
+
+ # Fix status when something has been mitigated, but not fully, yet
if ($status =~ /^(Mitigation): (.*vulnerable.*)$/) {
- return ("Mitigation-SMT", $2);
+ return ("Vulnerable", $status);
}
if ($status =~ /^(Vulnerable|Mitigation): (.*)$/) {