1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-19 04:22:22 +01:00

Delay umount (for RedHat access to pti_enable)

This commit is contained in:
Vincent Brillault 2018-01-08 12:41:02 +01:00
parent edbdf0da1f
commit 34ef5ef21b
No known key found for this signature in database
GPG Key ID: CFEA15DE034F0688

View File

@ -199,11 +199,6 @@ case "$ibrs_enabled" in
*) pstatus yellow unknown;;
esac
if [ "$mounted_debugfs" = 1 ]; then
# umount debugfs if we did mount it ourselves
umount /sys/kernel/debug
fi
/bin/echo "* Mitigation 2"
/bin/echo -n "* Kernel compiled with retpolines: "
# We check the RETPOLINE kernel options
@ -301,6 +296,11 @@ else
pstatus red NO
fi
if [ "$mounted_debugfs" = 1 ]; then
# umount debugfs if we did mount it ourselves
umount /sys/kernel/debug
fi
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "
if grep -q AMD /proc/cpuinfo; then
pstatus green "NOT VULNERABLE" "your CPU is not vulnerable as per the vendor"