]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
VmCheck_IsVirtualWorld(): assume VMware hypervisor if USE_VALGRIND is defined.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 13 Aug 2021 18:35:58 +0000 (11:35 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 13 Aug 2021 18:35:58 +0000 (11:35 -0700)
commit07aa3359ea6c734afe9cb5907019f16e9fedc59e
treec61cdb1141b4820d3ee6d01fd3c0f614cd3d6e4d
parente4265556a1e60a0298c03cf06222d5106e77325f
VmCheck_IsVirtualWorld(): assume VMware hypervisor if USE_VALGRIND is defined.

Updating the VmCheck_IsVirtualWorld() function to assume that if the
open-vm-tools build was configured with "--enable-valgrind", the tools
will be used on a VMware hypervisor for memory leak detection.  In this
case, simply return TRUE and avoid touching the backdoor.

The "backdoor" touch test cannot be handled by Valgrind.
open-vm-tools/lib/vmCheck/vmcheck.c
open-vm-tools/services/vmtoolsd/mainLoop.c
open-vm-tools/toolbox/toolbox-cmd.c