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
pstatus red NO
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
pstatus yellow UNKNOWN
fi