mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-12-23 04:43:37 +01:00
add kern.log as another backend of dmesg output
This commit is contained in:
parent
5ab95f3656
commit
42a57dd980
@ -1051,6 +1051,10 @@ check_variant3()
|
|||||||
# if we can't find the flag in dmesg output, grep in /var/log/dmesg when readable
|
# if we can't find the flag in dmesg output, grep in /var/log/dmesg when readable
|
||||||
_debug "kpti_enabled: found hint in /var/log/dmesg: "$(grep -E "$dmesg_grep" /var/log/dmesg)
|
_debug "kpti_enabled: found hint in /var/log/dmesg: "$(grep -E "$dmesg_grep" /var/log/dmesg)
|
||||||
kpti_enabled=1
|
kpti_enabled=1
|
||||||
|
elif [ -r /var/log/kern.log ] && grep -Eq "$dmesg_grep" /var/log/kern.log; then
|
||||||
|
# if we can't find the flag in dmesg output, grep in /var/log/kern.log when readable
|
||||||
|
_debug "kpti_enabled: found hint in /var/log/kern.log: "$(grep -E "$dmesg_grep" /var/log/kern.log)
|
||||||
|
kpti_enabled=1
|
||||||
else
|
else
|
||||||
_debug "kpti_enabled: couldn't find any hint that PTI is enabled"
|
_debug "kpti_enabled: couldn't find any hint that PTI is enabled"
|
||||||
kpti_enabled=0
|
kpti_enabled=0
|
||||||
@ -1097,6 +1101,9 @@ check_variant3()
|
|||||||
elif [ -r /var/log/dmesg ] && grep -q 'Booting paravirtualized kernel on Xen$' /var/log/dmesg; then
|
elif [ -r /var/log/dmesg ] && grep -q 'Booting paravirtualized kernel on Xen$' /var/log/dmesg; then
|
||||||
pstatus green YES 'Xen PV is not vulnerable'
|
pstatus green YES 'Xen PV is not vulnerable'
|
||||||
xen_pv=1
|
xen_pv=1
|
||||||
|
elif [ -r /var/log/kern.log ] && grep -q 'Booting paravirtualized kernel on Xen$' /var/log/kern.log; then
|
||||||
|
pstatus green YES 'Xen PV is not vulnerable'
|
||||||
|
xen_pv=1
|
||||||
else
|
else
|
||||||
pstatus blue NO
|
pstatus blue NO
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user