]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
8 years agoCommon header file change; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:55 +0000 (11:22 -0700)] 
Common header file change; not applicable to open-vm-tools.

8 years agoAllow SAML authn to bypass impersonation if the user is unchanged
Oliver Kurth [Fri, 15 Sep 2017 18:22:55 +0000 (11:22 -0700)] 
Allow SAML authn to bypass impersonation if the user is unchanged

vmwsu can't create an impersonation token for SYSTEM since its
not a 'real' account.  So bypass the impersonation phase since
toolsd is already running as SYSTEM.

8 years agoRemove an assert and save vSock family reference in vmsvc only.
Oliver Kurth [Fri, 15 Sep 2017 18:22:55 +0000 (11:22 -0700)] 
Remove an assert and save vSock family reference in vmsvc only.

VMCISock_GetAFValueFd API does not open a vsock device if kernel
has upstreamed drivers. So, the ASSERT for vsock fd is not valid
in such cases and has to go. Instead, save the reference only when
family as well as fd are valid, because there is no need to save
the reference in case of upstreamed drivers case anyway.

If 'vmusr' holds a reference to vSock address family, it could
come in the way of upgrade because 'vmusr' keeps running during
upgrade. To avoid that issue and given that we just need one
reference, we limit the reference to main service only.

Also fix the VMCISock_GetAFValueFd API to initialize outFd in
case of upstreamed drivers.

8 years agoChanges to support valgrind with Tools
Oliver Kurth [Fri, 15 Sep 2017 18:22:55 +0000 (11:22 -0700)] 
Changes to support valgrind with Tools

Allow Tools to be built with valgrind support. With these changes,
adding "export USE_VALGRIND=1" in Local.mk will build a version of
Tools that works with valgrind.

Also includes a change to turn off appLoader for vmtoosld
and toolbox-cmd.

8 years agoadd toolbox-cmd for tools.conf config entries
Oliver Kurth [Fri, 15 Sep 2017 18:22:55 +0000 (11:22 -0700)] 
add toolbox-cmd for tools.conf config entries

Add a generic tools.conf set/get mechanism that can
be used for any config entry.  The first specific use case
is to enable/disable the allowLocalSystem pref for SRM.

8 years agoCommon header file changes; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Common header file changes; not applicable to open-vm-tools.

8 years agoMake sure the Windows version of namespacetool logs to stdio
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Make sure the Windows version of namespacetool logs to stdio

Make sure the Windows version of namespacetool logs to stdio instead
of logging to debugger.

The Windows version of namespacetool didn't print the warning messages
under the verbose option.

8 years agoRename IsPowerOfTwo() to IsZeroOrPowerOfTwo()
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Rename IsPowerOfTwo() to IsZeroOrPowerOfTwo()

The function accepts 0. Make the behavior explicit in the name.

8 years agovmhgfs-fuse: remove unused label
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
vmhgfs-fuse: remove unused label

An unsused label caused an error when building on FreeBSD. It is not
used, so remove it.

8 years agoReplace RpcOut_sendOne with RpcChannel_SendOne in vmtoolsd commandline.
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Replace RpcOut_sendOne with RpcChannel_SendOne in vmtoolsd commandline.

"vmtoolsd --cmd=<payload>" uses RpcOut_sendOne which is a backdoor
only implementation. It should try vSocket before falling back to
backdoor.

8 years agoDon't auto-retry RpcChannel_Send when error is final.
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Don't auto-retry RpcChannel_Send when error is final.

RpcChannel_Send retries in case of any error. However, retry makes
sense only when there is a transport error. When there is a failure
returned from VMware in handling the RPC command, the error is final
and retrying does not make any sense. We need to avoid retry when
it is not a transport error. In order to differentiate between
the two types of errors the internal function signatures required
changes. As there are not many direct consumers for RpcOut_send, fix
all of its callers to check rpcStatus along with the return value of
the function. New API behavior also allows removal of some string
comparisons on "reply".

There are no other behavioral changes intended in RpcChannel_Send,
so all the callers of this function remain untouched.

8 years agoopen-vm-tools: use $(srcdir) in Makefile.am for udev rule
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
open-vm-tools: use $(srcdir) in Makefile.am for udev rule

Building in a separate directory was broken for installing the
udev rule. We need to use $(srcdir) in Makefile.am, otherwise
'make install' will fail.

8 years agoFix the namespace tool verbose option.
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Fix the namespace tool verbose option.

Fix the the namespace tool verbose option to print out the debug
and warning messages of the vm libs to stdio.

Introduce a new function that console apps can call to log to stdio.

8 years agoFix guestproxycerttool to properly handle non-ASCII filenames
Oliver Kurth [Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)] 
Fix guestproxycerttool to properly handle non-ASCII filenames

Filenames are being passed as UTF-8, but file
opens (both CreateFile and fopen()) were assuming
ASCII.  Switch to a conversion & CreateFielW and g_fopen(),
which handles full UTF-8 filenames.

Also tweak the error logging to dump the error code
for easier debugging on non-english OSes.

8 years agoFix a namespace tool crash.
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Fix a namespace tool crash.

The namespace tool core-dumps when running the following command
vmware-namespace-cmd -V get-value name -k key

This is because glib options parser removed the -V from the argv,
and passed the ValidateNsCommands() check. However, the later
RunNamespacecommand shall ASSERT() on the NULL nscmd.

8 years agoChanges to shared header file unrelated to open-vm-tools
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Changes to shared header file unrelated to open-vm-tools

8 years agoCoding standard updates
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Coding standard updates

Fix a few things to conform to the coding standard.

8 years agoopen-vm-tools: add udev rules to set scsi timeout
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
open-vm-tools: add udev rules to set scsi timeout

 To avoid volumes going read-only of offline, a longer timeout
 is needed, see bug #271286. This is already done for tar tools
 and OSPs using udev rules, but not yet for open-vm-tools. This change adds
 a udev rule for open-vm-tools.

 A static file is used, and it will be installed for Linux always and only.
 There used to be a different format for udev rules, but that is very old
 (before 2010 at least), and used for RHEL up until RHEL 5 and SLE until
 SLE 10. It is not thought that we need to support these old udev versions for
 open-vm-tools.

8 years agoMake NullProvider race-free to be thread-safe.
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Make NullProvider race-free to be thread-safe.

 NullProvider start function was sending 'prov.snapshotCommit'
 message to VMX which was being done on the worker thread.
 This led to a race condition where VMX state machine advanced
 faster than guest side state machine. Later, when VMX state
 machine sent 'vmbackup.snapshotDone' to vmbackup plugin it
 did not like it because it was not ready for that message.

 In order to fix this issue, we need to split the code that
 sends 'prov.snapshotCommit' message into a separate callback
 that gets called by the main thread instead of the worker
 thread. To do that, we needed to create a VmBackupOp for
 NullProvider so that it can be monitored by the top level
 state machine.

 While there also fixed a subtle race found by Victor in
 VmBackupAsyncCallback. Basically, it can prematurely release
 an op if the op was set by worker thread between QueryStatus
 and Release calls (i.e. line 483-488). This is possible
 due the initial value of status. Fixed the initial value of
 status to make it impossible.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoToolsCore_InitVsockFamily() must tolerate the lack of an RPC channel
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
ToolsCore_InitVsockFamily() must tolerate the lack of an RPC channel
when the backdoor has been disabled.

8 years agoBulk updates to the common-agent (CAF) source.
Oliver Kurth [Fri, 15 Sep 2017 18:22:53 +0000 (11:22 -0700)] 
Bulk updates to the common-agent (CAF) source.

8 years agoChanges to common header file; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Changes to common header file; not applicable to open-vm-tools.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years ago[Tools GuestInfo] Return proper osname for Centos 6 / 7 (again)
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
[Tools GuestInfo] Return proper osname for Centos 6 / 7  (again)

 Updated the code to detect Centos 6 and Centos Linux 7 and return
 proper osname acocrdingly.

8 years ago[Tools GuestInfo] Return proper osname for Oracle Linux 6 / 7
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
[Tools GuestInfo] Return proper osname for Oracle Linux 6 / 7

 Updated the code to detect Oracle Linux 6 and Oracle Linux 7 and return
 proper osname acocrdingly.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoHold a reference to vSocket address family in vmtoolsd.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Hold a reference to vSocket address family in vmtoolsd.

 On old hosts that do not support secure guestRpc vmtoolsd
 falls back to use backdoor. However, there could be vmci
 and vsocket drivers loaded in the guest that make vSocket
 consumers (e.g. guestLib and namespace-cmd) try vSocket
 all the time before falling back to backdoor. On old Linux
 guests like RHEL 5, 6 (kernels below 3.9 that do not have
 upstreamed vmci and vsocket drivers) this causes log spew
 in guest system logs because of vSocket address family being
 registered and unregistered on each RPC call (RpcChannel_SendOne).

 This could be solved in multiple ways involving some
 work from user. In order to solve this problem in a user
 friendly way, we hold a reference to vSocket device in
 vmtoolsd service, so that the reference goes away during
 Tools upgrade.

8 years agoCheck for bad length fields for input byte buffers in dataMap code.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Check for bad length fields for input byte buffers in dataMap code.

8 years agoChange to common header file that is not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Change to common header file that is not applicable to open-vm-tools.

8 years agoCommon header file change that is not relevant for open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:52 +0000 (11:22 -0700)] 
Common header file change that is not relevant for open-vm-tools.

8 years agoCommon header file change that is not relevant for open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Common header file change that is not relevant for open-vm-tools.

8 years agoopen-vm-tools: fix build error in Ubuntu 16.04
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
open-vm-tools: fix build error in Ubuntu 16.04

 The -std=c++11 causes an error when used with the GNU C compiler, but it
 is in GTKMM_CPPFLAGS. So this change moves GTKMM_CPPFLAGS from
 libdndcp_la_CPPFLAGS to libdndcp_la_CXXFLAGS in
 services/plugins/dndcp/Makefile.am.

 This also fixes building for current Debian sid.

8 years agoHgfs Linux Client: fix editor prompts for file changes
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Hgfs Linux Client: fix editor prompts for file changes

 When using some editors such as gedit to modify files on the HGFS
 shares the editor can become confused thinking that the file has
 been modified remotely and therefore needs to refresh the contents.
 This occurs due to the file's modify and change times being updated
 after the last writes from the editor and the modify/change times
 in the inode not being updated immediately.

8 years agoFix a couple more Coverity-reported issues in tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Fix a couple more Coverity-reported issues in tools.

8 years agoCommon header file change associated with adding Misc. debug messages for
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Common header file change associated with adding Misc. debug messages for
the toolsversion module.  Change is not directly applicable to open-vm-tools.

8 years agoChange to common header file that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Change to common header file that is not relevant to open-vm-tools.

8 years agoChanges to common header file that are not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Changes to common header file that are not relevant to open-vm-tools.

8 years agoFix additional Coverity issues in tools and hgfs.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Fix additional Coverity issues in tools and hgfs.

8 years agoCAF does not synchronize correctly with Namespace DB.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
CAF does not synchronize correctly with Namespace DB.

8 years agoDetect slow running systems in guestInfo.
Oliver Kurth [Fri, 15 Sep 2017 18:22:51 +0000 (11:22 -0700)] 
Detect slow running systems in guestInfo.

 - Added a new function in guestInfo. The new function checks the last
   time when the guest info was captured and prints a warning and sends
   a RPC message to the VMX if the elapsed interval was more than the
   expected poll interval.

8 years agoImproving CAF build time, especially for open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:50 +0000 (11:22 -0700)] 
Improving CAF build time, especially for open-vm-tools.

8 years agoImproving CAF build time, especially for open-vm-tools with additional files.
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Improving CAF build time, especially for open-vm-tools with additional files.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoTools: Implement resolutionKMS for linux
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Tools: Implement resolutionKMS for linux

tools: Enable the use of the PKG_CHECK_MODULES macro for open-vm-tools

Adds a path to the pkg-config utility and sets up the open-vm-tools test
build environment to be aware of its m4 macros.
Also sets up a local directory for .pc files and adds the libdrm and libudev
pc files to that directory (during open-vm-tools configure time) to prepare
for resolutionKMS testing.

tools: Prepare resolutionSet for resolutionKMS on Linux

- Add a set of utilities for detecting the DRM version, the Xorg driver
version and to dlopen libudev and libdrm if they are not available at
build time. The utilities also include opening and closing a DRM file
descriptor from a given type of device node.
- Change the check for Xorg driver version in resolutionX11 to use the
new utility
- Pass a ToolsAppCtx to the resolutionSet backend for access to the
configuration database.
- Finally, detect if there is system and / or configuration support for
resolutionKMS and in that case back off resolutionSet

- Added some license information to resolutionDL.h
- Added an include to resolutionDL.h
- Fixed some ifdefs around HAVE_RESOLUTIONKMS
- Modified other backends for the new resolutionToolkitInit() interface.

tools: Add the resolutionKMS plugin

What's resolutionKMS
ResolutionKMS is a plugin that takes over the resolutionSet functionality,
but as a vmsvc plugin rather than a vmusr plugin. Instead of talking to the
X server it talks to the Kernel Mode Setting (KMS) functionality of the
vmwgfx kernel module. This enables the following functionality.

- Resolution / Topology switching at the login screen
- Resolution / Topology switching when multiple users have launched multiple
X servers as part of fast user-switching.
- Resolution / Topology switching for new native compositors that support
the KMS way of communicating resolution / topology (as preferred mode and
connector properties) As far as I know, only gnome-shell / Wayland can do the
topology switching today, since I implemented the missing support for it.
We need to address this issue also with Mir and other Wayland implementations.

New dependencies.
The new code requires libudev and libdrm. For open-vm-tools, I've opted to
require those libraries at configure time. There's no option to build linux
open-vm-tools without resolutionKMS support, although that should be easy to
add if needed. For vmware-tools, there is code to enable resolutionKMS iff
libudev.so.1 and libdrm.so.2 are present at load time and can be dlopened.
For vmware tools there are no new build dependencies introduced at load time
AFAIK. (dlopen?)

Enablement
ResolutionKMS requires vmwgfx 2.10.0+ and xf86-video-vmware 13.2.0+ to
guarantee that we don't lose functionality compared to old resolutionSet. The
vmwgfx kernel module has a way to check version at runtime. For the xorg driver
the situation is different since resolutionKMS is typically launched before
Xorg. Therefore we fall back to the hackish way previously implemented in
resolutionX11.c to find the driver file and scan it for version info. Oh well.
In any case, there is also an option to override this and enable or disable
resolutionKMS in the tools.conf file. If resolutionKMS is disable either by
lacking system support or by configuration, the old resolutionSet functionality
kicks in. Extensive debugging info will be present in the tools daemon logs.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoFix unused function errors thrown by clang 3.4
Oliver Kurth [Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)] 
Fix unused function errors thrown by clang 3.4

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoCommon header file change that is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Common header file change that is not relevant to open-vm-tools.

8 years agoCommon header file change; not relevant to openb-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Common header file change; not relevant to openb-vm-tools.

8 years agoFix additional tools issues reported by Coverity.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Fix additional tools issues reported by Coverity.

 Fix some issues found by the latest Coverity scan of tools 10.1,
 plus a few related nits.

8 years agoChange to common header file; change is not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Change to common header file; change is not relevant to open-vm-tools.

8 years agoBulk changes for the common-agent service.
Oliver Kurth [Fri, 15 Sep 2017 18:22:48 +0000 (11:22 -0700)] 
Bulk changes for the common-agent service.

8 years agoCommon-agent Framework Makefile additions.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Common-agent Framework Makefile additions.

8 years agoBackout previous change to common header file; change is not relevant to
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Backout previous change to common header file; change is not relevant to
open-vm-tools.

8 years agoHgfs Fuse Client: increment the client version to 1.6.3
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Hgfs Fuse Client: increment the client version to 1.6.3

8 years agoHgfs Fuse Client: fix symlinks
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Hgfs Fuse Client: fix symlinks

 Symlinks were not being handled correctly for some cases.

 The symlink creation call tried to make the target an absolute path which
 it should not do. Only the source is passed as the absolute path which
 is created and links to the target which can be relative or absolute but
 is dependent on what the user passes.

 The readlink was broken and incorrectly creating a target name to pass
 to the FUSE library.
 This was obvious when alternative mount points are used
    e.g. .host:/Users -> /Users
 instead of
    .host:/ /mnt/hgfs

 This was discovered when used in the containers environment with docker.
 However, it is a standard option for HGFS client usage in any hosted product.

8 years agovmxnet3_defs.h: Common header file changes; not directly relevant to
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
vmxnet3_defs.h: Common header file changes; not directly relevant to
open-vm-tools.
 - Fix Rx Ring2 max size
 - Add Tx Data Ring Desc Size config support

8 years agosyncDriverLinux.c: Revert of "fdCnt" from ssize_t back to size_t.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
syncDriverLinux.c: Revert of "fdCnt" from ssize_t back to size_t.

8 years agoCommon header file change; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Common header file change; not relevant to open-vm-tools.

8 years agoCorrect the freeze and thaw ordering for mount points
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Correct the freeze and thaw ordering for mount points

 There were two issues with the way we were doing quiescing on Linux:
 1. Thaw was following the same order as freeze, actually it should
    follow the reverse order of freeze. Fixed the thaw order.
 2. Freeze was following the order provided by getmntent API which is
    the order in which system created the mount points. This could
    be problematic when a mount point depends on other mount point,
    e.g. loopback mount point. In order to honor the dependency
    among mount points, we need to reverse the order of mount points
    listed by getmntent API.

 While reviewing this change it was found that the interface used for
 passing the mount points around was not very clean. It was a ':'
 separated string of mount points. There were multiple problems with it.
 We were converting a list of strings into one string and then tokenizing
 it later. As part of this change, we fix that interface too by replacing
 the string with single-linked list, GSList. Using GSList brings glib
 dependency to lib/syncDriver.

8 years agoChanges tp common header file; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Changes tp common header file; not relevant to open-vm-tools.

8 years agoCommon header file changes; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Common header file changes; not relevant to open-vm-tools.

8 years agoChanges to common files.
Oliver Kurth [Fri, 15 Sep 2017 18:22:47 +0000 (11:22 -0700)] 
Changes to common files.
- lib/file/fileIO.c: Make Fil3_SwapFilesi() path more robust wrt resource
  contentions.
- Common header file change; not relevant to open-vm-tools.

8 years agoChange to common header file; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Change to common header file; not applicable to open-vm-tools.

8 years agoChange to common header file; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Change to common header file; not applicable to open-vm-tools.

8 years agoRemove unreferenced functions for common header file; not applicable
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Remove unreferenced functions for common header file; not applicable
to open-vm-tools.

8 years agolib/file/file.c: minor cleanup to File_GetSizeEx()
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
lib/file/file.c: minor cleanup to File_GetSizeEx()
 - Make the code consistent with the rest of lib/file.

8 years agoBulk updates to the common-agent (CAF) code.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Bulk updates to the common-agent (CAF) code.

8 years agoHgfs Win Client: fix PFD issues part II
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Hgfs Win Client: fix PFD issues part II
 - Header file changes related to PREfast analysis which centers around
   buffers and locks.

8 years agoChange to common header file; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Change to common header file; not applicable to open-vm-tools.

8 years agoUpdate the COPYRIGHT_YEARS macro definition. Other common header file
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Update the COPYRIGHT_YEARS macro definition.  Other common header file
changes that are not applicable to open-vm-tools.

8 years agolib/string: Str_Strncat boundary check improvement to prevent buffer overflow.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
lib/string: Str_Strncat boundary check improvement to prevent buffer overflow.

8 years agoReversal of common header file change; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:46 +0000 (11:22 -0700)] 
Reversal of common header file change; not relevant to open-vm-tools.

8 years agoChange to common header file; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:45 +0000 (11:22 -0700)] 
Change to common header file; not relevant to open-vm-tools.

8 years agoBulk update (merge) of common-agent Communications, Framework,
Oliver Kurth [Fri, 15 Sep 2017 18:22:45 +0000 (11:22 -0700)] 
Bulk update (merge) of common-agent Communications, Framework,
InternalProviders, and ManagementAgent source code.

8 years agoFix buffer overflow in Str_Strncat() found by Coverity.
Oliver Kurth [Fri, 15 Sep 2017 18:22:45 +0000 (11:22 -0700)] 
Fix buffer overflow in Str_Strncat() found by Coverity.

8 years agoCommon header file change; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:45 +0000 (11:22 -0700)] 
Common header file change; not relevant to open-vm-tools.

8 years agoReversal of common header file change; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:45 +0000 (11:22 -0700)] 
Reversal of common header file change; not relevant to open-vm-tools.

8 years agoUpdate the Copyright Year to 2016 in all files released to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Update the Copyright Year to 2016 in all files released to open-vm-tools.

8 years agoImplemented StrUtil_ReplaceAll() function in lib/misc/strutil.c.
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Implemented StrUtil_ReplaceAll() function in lib/misc/strutil.c.

8 years agoCommon header file change; not relevant to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Common header file change; not relevant to open-vm-tools.

8 years agoFix some leaks found by valgrind.
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Fix some leaks found by valgrind.
  - leaking the 'data' pref value for a log handler.
  - leaking an rpc message response if the caller doesn't want it.
  - leaking username/password for every guestOp

8 years agoUpdated license file for open-vm-tools 10.0.7 release.
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Updated license file for open-vm-tools 10.0.7 release.

8 years agoAdding CPUID leaves to common header x86cpuid.h. Change not relevant to
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Adding CPUID leaves to common header x86cpuid.h.  Change not relevant to
open-vm-tools.

8 years agoFix setlocale() usage to address valgrind diagnostics. On Linux, the
Oliver Kurth [Fri, 15 Sep 2017 18:22:44 +0000 (11:22 -0700)] 
Fix setlocale() usage to address valgrind diagnostics.  On Linux, the
return value points to static memory, so we have to make a a local copy.

8 years agoUpdate copyright year in two open-vm-tools files.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Update copyright year in two open-vm-tools files.

8 years agoUpdate vm_assert.h header file to avoid false positive diagnostics from
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Update vm_assert.h header file to avoid false positive diagnostics from
Coverity.  Make Panic_NoSave a NORETURN function.

8 years agoCommon header file update; not applicable to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Common header file update; not applicable to open-vm-tools.

8 years agolib/hashMap: Remove unused HasMap_Store() and _Retrieve() functions.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
lib/hashMap: Remove unused HasMap_Store() and _Retrieve() functions.
CheckSanity() should only be compiled if VMX86_DEBUG is set to avoid
an unused function warning from clang 3.4.

8 years agolib/log: make the default log level accessible - and use it
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
lib/log: make the default log level accessible - and use it

The default log level is known interally to the Log Facility. It needs
to be available "everywhere". Do that and deploy it to all places
that should use it.

8 years agoRevise dtoa() to use ecvt_r/fcvt_r on Linux/ESX an thus avoid using a
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Revise dtoa() to use ecvt_r/fcvt_r on Linux/ESX an thus avoid using a
pthread_mutex_lock.

8 years agovmci/vsock driver changes for Windows; not applicale to open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
vmci/vsock driver changes for Windows; not applicale to open-vm-tools.

8 years agoMultiple fixes for common source code.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Multiple fixes for common source code.

- File_FullPath() revised to return the canonical path of a file or
  directory that exists or is about to be created as a child of an
  existing directory.
- Common header file updates; not related to open-vm-tools

8 years agoShared header file update; no impact on open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Shared header file update; no impact on open-vm-tools.

8 years agoShared header file update; no impact on open-vm-tools.
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
Shared header file update; no impact on open-vm-tools.

8 years agoThe Linux network script has been updated to prefer 'ip' command over the
Oliver Kurth [Fri, 15 Sep 2017 18:22:43 +0000 (11:22 -0700)] 
The Linux network script has been updated to prefer 'ip' command over the
'ifconfig' command for gathering network information.