1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-07 06:33:38 +01:00

Fix misdetection of files under Clear Linux (#264)

This commit is contained in:
Brett T. Warden 2018-11-25 09:14:04 -08:00 committed by Stéphane Lesimple
parent c705afe764
commit 4a6fa070a4

View File

@ -1593,8 +1593,8 @@ if [ "$opt_live" = 1 ]; then
opt_map="/lib/modules/$(uname -r)/System.map"
elif [ -e "/boot/System.map-$(uname -r)" ] ; then
opt_map="/boot/System.map-$(uname -r)"
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
opt_config="/lib/kernel/config-$(uname -r)"
elif [ -e "/lib/kernel/System.map-$(uname -r)" ]; then
opt_map="/lib/kernel/System.map-$(uname -r)"
fi
# config
@ -1609,6 +1609,8 @@ if [ "$opt_live" = 1 ]; then
opt_config="/boot/config-$(uname -r)"
elif [ -e "/etc/kernels/kernel-config-$(uname -m)-$(uname -r)" ]; then
opt_config="/etc/kernels/kernel-config-$(uname -m)-$(uname -r)"
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
opt_config="/lib/kernel/config-$(uname -r)"
fi
else
_info "Checking for vulnerabilities against specified kernel"