mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2025-01-03 10:05:44 +01:00
fix: has_vmm false positive with pcp
Fix by matching the full procname with pgrep (-x), so that the 'pmdakvm' process doesn't match. Closes #394
This commit is contained in:
parent
3846913899
commit
05d862709d
@ -3201,7 +3201,7 @@ check_has_vmm()
|
|||||||
# for each binary we want to grep, get the pids
|
# for each binary we want to grep, get the pids
|
||||||
for _binary in qemu kvm xenstored xenconsoled
|
for _binary in qemu kvm xenstored xenconsoled
|
||||||
do
|
do
|
||||||
for _pid in $(pgrep $_binary)
|
for _pid in $(pgrep -x $_binary)
|
||||||
do
|
do
|
||||||
# resolve the exe symlink, if it doesn't resolve with -m,
|
# resolve the exe symlink, if it doesn't resolve with -m,
|
||||||
# which doesn't even need the dest to exist, it means the symlink
|
# which doesn't even need the dest to exist, it means the symlink
|
||||||
|
Loading…
Reference in New Issue
Block a user