BSD: add not-implemented-yet notice for Foreshadow-NG

This commit is contained in:
Stéphane Lesimple 2018-09-18 22:06:01 +02:00
parent b419fe7c63
commit bff38f1b26

View File

@ -3521,7 +3521,17 @@ check_CVE_2018_3620()
{
cve='CVE-2018-3620'
_info "\033[1;34m$cve aka '$(cve2name "$cve")'\033[0m"
if [ "$os" = Linux ]; then
check_CVE_2018_3620_linux
elif echo "$os" | grep -q BSD; then
check_CVE_2018_3620_bsd
else
_warn "Unsupported OS ($os)"
fi
}
check_CVE_2018_3620_linux()
{
status=UNK
sys_interface_available=0
msg=''
@ -3586,12 +3596,31 @@ check_CVE_2018_3620()
fi
}
check_CVE_2018_3620_bsd()
{
if ! is_cpu_vulnerable "$cve"; then
pvulnstatus $cve OK "your CPU vendor reported your CPU model as not vulnerable"
else
pvulnstatus $cve UNK "check not implemented yet under BSD"
fi
}
# L1TF VMM
check_CVE_2018_3646()
{
cve='CVE-2018-3646'
_info "\033[1;34m$cve aka '$(cve2name "$cve")'\033[0m"
if [ "$os" = Linux ]; then
check_CVE_2018_3646_linux
elif echo "$os" | grep -q BSD; then
check_CVE_2018_3646_bsd
else
_warn "Unsupported OS ($os)"
fi
}
check_CVE_2018_3646_linux()
{
status=UNK
sys_interface_available=0
msg=''
@ -3742,6 +3771,15 @@ check_CVE_2018_3646()
fi
}
check_CVE_2018_3646_bsd()
{
if ! is_cpu_vulnerable "$cve"; then
pvulnstatus $cve OK "your CPU vendor reported your CPU model as not vulnerable"
else
pvulnstatus $cve UNK "check not implemented yet under BSD"
fi
}
if [ "$opt_no_hw" = 0 ] && [ -z "$opt_arch_prefix" ]; then
check_cpu
check_cpu_vulnerabilities