VmCheck_GetVersion() accesses Backdoor in an unsafe manner
which is not expected to work on non-VMware environments
including physical machines. So, we need to make sure that
VmCheck_GetVersion() is called only when we are running in
a VMware VM.
return NULL;
}
+ /*
+ * If not running in a VMware VM, return NULL to disable the plugin.
+ */
+ if (!ctx->isVMware) {
+ return NULL;
+ }
+
/*
* Check for VM is running in a hosted environment and if so initialize
* the Shared Folders HGFS client redirector.