1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-23 04:43:37 +01:00

add info about accuracy when missing kernel files

This commit is contained in:
Stéphane Lesimple 2018-01-13 13:59:17 +01:00
parent b47d505689
commit 7f92717a2c

View File

@ -505,10 +505,12 @@ if [ "$opt_live" = 1 ]; then
else else
_info "Checking for vulnerabilities against specified kernel" _info "Checking for vulnerabilities against specified kernel"
fi fi
if [ -n "$opt_kernel" ]; then if [ -n "$opt_kernel" ]; then
_verbose "Will use vmlinux image \033[35m$opt_kernel\033[0m" _verbose "Will use vmlinux image \033[35m$opt_kernel\033[0m"
else else
_verbose "Will use no vmlinux image (accuracy might be reduced)" _verbose "Will use no vmlinux image (accuracy might be reduced)"
bad_accuracy=1
fi fi
if [ -n "$dumped_config" ]; then if [ -n "$dumped_config" ]; then
_verbose "Will use kconfig \033[35m/proc/config.gz\033[0m" _verbose "Will use kconfig \033[35m/proc/config.gz\033[0m"
@ -516,11 +518,17 @@ elif [ -n "$opt_config" ]; then
_verbose "Will use kconfig \033[35m$opt_config\033[0m" _verbose "Will use kconfig \033[35m$opt_config\033[0m"
else else
_verbose "Will use no kconfig (accuracy might be reduced)" _verbose "Will use no kconfig (accuracy might be reduced)"
bad_accuracy=1
fi fi
if [ -n "$opt_map" ]; then if [ -n "$opt_map" ]; then
_verbose "Will use System.map file \033[35m$opt_map\033[0m" _verbose "Will use System.map file \033[35m$opt_map\033[0m"
else else
_verbose "Will use no System.map file (accuracy might be reduced)" _verbose "Will use no System.map file (accuracy might be reduced)"
bad_accuracy=1
fi
if [ "$bad_accuracy" = 1 ]; then
_info "We're missing some kernel info (see -v), accuracy might be reduced"
fi fi
if [ -e "$opt_kernel" ]; then if [ -e "$opt_kernel" ]; then