John Wolfe [Tue, 12 Jul 2022 16:56:01 +0000 (09:56 -0700)]
Fix a bug in CodeSet_JsonEscape.
Fix a bug introduced in an earlier change in which CodeSet_JsonEscape
erroneously tests the first character in the buffer when checking
whether to escape the character currently being processed.
John Wolfe [Tue, 12 Jul 2022 16:56:01 +0000 (09:56 -0700)]
Escape all control characters in JSON.
Update CodeSet_JsonEscape to escape all control characters between
U+0000 and U+001F as required by the JSON standard. Delete
CodeSet_Utf8Escape as it is no longer used. Also update datasets
in-guest API tests accordingly.
John Wolfe [Tue, 7 Jun 2022 17:07:23 +0000 (10:07 -0700)]
Update ChangeLog with the granular push of June 7, 2022.
- plus the sync of the README.md with the stable-12.0.x branch.
- plus ChangeLog update of May 17, 2022.
John Wolfe [Mon, 23 May 2022 20:15:32 +0000 (13:15 -0700)]
Preparing for the 12.0.5 open-vm-tools release
- configure.ac: set release version - 2 spots.
- lib/include/buildNumber.h: Set build number and product build number.
John Wolfe [Wed, 18 May 2022 01:36:21 +0000 (18:36 -0700)]
vm-support: Capture the locale configuration of the Linux guest.
To aid in debugging issues related to locale configuration, the vm-support
command has been updated to collect the following:
- The contents of the /etc/default/locale file if it exists.
- The contents of the /etc/locale.conf file if it exists.
- The output of the 'locale' command for the current environment.
- The output of the 'locale -a' command for a list of available locales.
John Wolfe [Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)]
Fix a compilation issue in the containerInfo plugin for i386 builds.
The "gint64" type used for time values in the code is not a "long" on
i386. The fix using the glib "G_GINT64_FORMAT" macro was provided by
the Debian OVT maintainer.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
Improve the "don't touch this" comments for Linux guest identification.
Pull requests to add distro identification information are often submitted.
Open-vm-tools does not own the guest identification code. Such a change
requires coordinated changes throughout the VMware product stack.
Improve the text to reduce pull requests for changes to common source
code that open-vm-tools does not own and cannot make.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
ContainerInfo Plugin: correct compiler warnings in containerInfo_grpc.cc
- The local variable "containersAdded" should be an 'unsigned int' since
it's compared with an 'unsigned int' parameter.
- Remove the unreferenced local variable "numContainers".
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
Adding configuration information for the GlobalConf feature.
As part of the GlobalConf feature, a "globalconf" section is introduced
into tools.conf to provide custom configuration options for the feature.
The configuration parameters are as follows:
* enabled=false - Enable/disable the GlobalConf module.
* poll-interval=3600 - Poll interval for the GlobalConf feature.
* resource=<path> - Defines the location of the tools.conf in the
GuestStore. There is a separate default for Windows
and Linux guests.
John Wolfe [Wed, 20 Apr 2022 20:24:07 +0000 (13:24 -0700)]
asyncsocket.c: Use size_t in place of int type for array size and indexing.
Glibc 2.35 with GCC 11 and 12 produces additional warnings about strings
and array bounds. Switching from "int" to "size_t" type for variable
used for the array size and element indexing.
GCC warned when an integer value is passed as the size of the
struct pollfd array to poll().
John Wolfe [Tue, 19 Apr 2022 21:30:54 +0000 (14:30 -0700)]
Improve the "don't touch this" comments for Linux guest identification.
Pull requests to add distro identification information are often submitted.
Open-vm-tools does not own the guest identification code. Such a change
requires coordinated changes throughout the VMware product stack.
Improve the text to reduce pull requests for changes to common source
code that open-vm-tools does not own and cannot make.
John Wolfe [Tue, 19 Apr 2022 21:30:54 +0000 (14:30 -0700)]
Added the following miscellaneous checks for the deploypkg plugin.
1. Check if the plugin is running in a VMware VM.
2. Check if the plugin is loaded by the main tools service.
3. Check if the underlying hypervisor is ESXi.
John Wolfe [Tue, 19 Apr 2022 21:30:53 +0000 (14:30 -0700)]
ContainerInfo Plugin: correct compiler warnings in containerInfo_grpc.cc
- The local variable "containersAdded" should be an 'unsigned int' since
it's compared with an 'unsigned int' parameter.
- Remove the unreferenced local variable "numContainers".
John Wolfe [Mon, 4 Apr 2022 19:58:41 +0000 (12:58 -0700)]
Generalize VMX RPC code in vgauthservice.
- Rework the code so that it can used for other RPCs in the future.
- Rework the code reading the RPC reply, since it can now be much larger.
- Also remove the attempt to use the "guest.log.text" RPC since the VMX
will just drop the logging on the floor with no error if the virtual
HW version is too old. A smart fail over is not possible.