1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-07-11 22:03:42 +02:00

add System.map way of detecting kpti build

This commit is contained in:
Stéphane Lesimple 2018-01-07 15:36:05 +01:00
parent 0c4591f8ec
commit c937e6603b

View File

@ -115,6 +115,13 @@ elif [ -e /boot/config-$(uname -r) ]; then
else else
pstatus red NO pstatus red NO
fi fi
elif [ -e /boot/System.map-$(uname -r) ]; then
if grep -qw kpti_force_enabled /boot/System.map-$(uname -r)
pstatus green YES
kpti_support=1
else
pstatus red NO
fi
else else
pstatus yellow UNKNOWN pstatus yellow UNKNOWN
fi fi