]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
6 years agoConfigurable environment for vmtoolsd.
Oliver Kurth [Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)] 
Configurable environment for vmtoolsd.

If a user wants to override(*) an environment variable e.g.
TMPDIR for vmtoolsd, the only choices for the user are:
1. Change system environment variable, that may affect more
than vmtoolsd
2. Change vmtoolsd service startup scripts on Linux.
Some of these methods, especially #2 gets overwritten by
upgrades and user is forced to re-apply the change on every
upgrade of VMTools. Also, #2 is somewhat complex due to
different type of VMTools installations and differences
in Linux distros.

We can't override the environment completely from within
service but we can configure the environment to a large
extent once vmtoolsd comes up and reads tools.conf.

*=> "override" term here applies to setting, modifying and/or
unsetting an environment variable.

This is mainly required for system service vmsvc, but
given that vmusr shares code with vmsvc, we can provide
this functionality for both.

Updated example tools.conf with the new configuration.

6 years agoMake pollGtk resetable.
Oliver Kurth [Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)] 
Make pollGtk resetable.

A simple poll implementation built on top of GLib, pollGtk can only be
inited once in a program's lifetime.  This works for product but not
testcases.

This patch changes the function static variable "inited" to be file static,
and can be reset this variable in PollGtkExit().

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)] 
Common header file change not applicable to open-vm-tools.

6 years agoAddress Coverity reported issues in the DnD plugin.
Oliver Kurth [Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)] 
Address Coverity reported issues in the DnD plugin.
  - uninitialized non-static class members.
  - memory leak.
  - potential NULL pointer dereference.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Tue, 12 Nov 2019 02:12:22 +0000 (18:12 -0800)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Tue, 12 Nov 2019 02:12:21 +0000 (18:12 -0800)] 
Common header file change not applicable to open-vm-tools.

6 years agoAddress some issues reported by the Coverity scan of open-vm-tools.
Oliver Kurth [Tue, 12 Nov 2019 02:12:21 +0000 (18:12 -0800)] 
Address some issues reported by the Coverity scan of open-vm-tools.

Fix or annotate issues reported in the Coverity scan of open-vm-tools,
as follows:

(1) Fix NULL pointer de-reference in failure case of
CopyStringListEntry.

(2) Add NULL pointer checks before dereferences in
VixMsg_DeObfuscateNamePassword.

(3) Annotate a false positive in VixMsg_EncodeString.

(4) Annotate and add an ASSERT to a false positive in
StrUtil_GetLongestLineLength.

6 years agonicinfo: report real nameservers used when using systemd-resolved
Oliver Kurth [Tue, 12 Nov 2019 02:12:21 +0000 (18:12 -0800)] 
nicinfo: report real nameservers used when using systemd-resolved

If systemd-resolved is used, report the external DNS server, not the
locally installed one.  This is detected by checking if /etc/resolv.conf
is a link to /run/systemd/resolve/stub-resolv.conf.  In that case,
/run/systemd/resolve/resolv.conf will hold the actual DNS server.  See
https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html

6 years agoCommon source file change not directly applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:21:53 +0000 (11:21 -0700)] 
Common source file change not directly applicable to open-vm-tools.

6 years agostop systemd-243 udev complaints #371
Oliver Kurth [Wed, 30 Oct 2019 18:21:53 +0000 (11:21 -0700)] 
stop systemd-243 udev complaints #371

Address issues from pull request #371 on github:
- fix substiution variables for systemd-243
- fix permissions of rules file
See https://github.com/vmware/open-vm-tools/pull/371

6 years agoSuppress a couple of coverity false alarms in FileLoggerOpen().
Oliver Kurth [Wed, 30 Oct 2019 18:21:53 +0000 (11:21 -0700)] 
Suppress a couple of coverity false alarms in FileLoggerOpen().

The stat() system call is used to determine whether to rotate logs.
There is no danger of time-of-check vs. time-of-use because the rotation
decision still holds even under the very-unlikely condition that the existing
log file size changes.

When rotating the logs, the service should not stop when a rename() fails
on an old file.  The process ignores the rename() return code intentionally.
The error condition cannot be logged because the process is already in the
log handling context and would either crash or risk a recursion loop
otherwise.  In addition, writing to stdout/stderr is useless, since the
process is running as a service and the stdout/stderr is reopened on /dev/null.

Therefore, the above two coverity issues are suppressed in the code.

6 years agoBump the VMware Tools version to 11.0.5 on vmtools-prod-cpd.
Oliver Kurth [Wed, 30 Oct 2019 18:21:53 +0000 (11:21 -0700)] 
Bump the VMware Tools version to 11.0.5 on vmtools-prod-cpd.

Update bora/public/vm_tools_version.h to set the current tools version
to 11.0.5

TOOLS_VERSION_SLEDGEHAMMER_UPDATE1  --> 11.0.5

6 years agoFix issue reported by Coverity scan in deployPkg
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Fix issue reported by Coverity scan in deployPkg

rand() should not be used for security-related applications, because
linear congruential algorithms are too easy to break.  Use a compliant
random number generator, such as /dev/random or /dev/urandom on
Unix-like systems, and CNG (Cryptography API: Next Generation) on Windows.

6 years agoAvoid securing disk device info for ZFS pools (at this time)
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Avoid securing disk device info for ZFS pools (at this time)

ZFS filesystem pools device names can appear as single directory name
at the root directory.  The current logic to locate the
/sys/class/blocks/<device> PCI structure based on typical device name
format will fail for ZFS pools.  As an immediate fix to the SIGSEGV,
avoid attempting to locate the PCI info; keep vmtoolsd running.

Addresses https://github.com/vmware/open-vm-tools/issues/378

6 years agoTrim trailing whitespace from log params in /etc/tools.conf.
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Trim trailing whitespace from log params in /etc/tools.conf.

Remove trailing whitespace from pathnames and parameters in
tools.conf.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoA LOG goes variadic change in asyncsocket.c
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
A LOG goes variadic change in asyncsocket.c

6 years agoFix Coverity reported issue in dndUIX11.cpp
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Fix Coverity reported issue in dndUIX11.cpp

- unsigned_compare: This greater-than-or-equal-to-zero comparison of an
  unsigned value is always true. end >= 0UL.
 Function: GetLastDirName

6 years agoRemove dead code in dndCommon.c reported by Coverity.
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
Remove dead code in dndCommon.c reported by Coverity.

6 years ago[open-vm-tools Coverity] Fix Coverity scan reported issues in copyPasteUIX11.cpp
Oliver Kurth [Wed, 30 Oct 2019 18:18:23 +0000 (11:18 -0700)] 
[open-vm-tools Coverity] Fix Coverity scan reported issues in copyPasteUIX11.cpp

- Non-static class member mHGGetListTime is not initialized in this constructor
 solution: add it into init list of constructor

- unsigned_compare: This greater-than-or-equal-to-zero comparison of an
  unsigned value is always true. end >= 0UL.
 Function: GetLastDirName

6 years ago[open-vm-tools Coverity] Fix sign extension issue reported by Coverity.
Oliver Kurth [Wed, 30 Oct 2019 18:18:22 +0000 (11:18 -0700)] 
[open-vm-tools Coverity] Fix sign extension issue reported by Coverity.

- sign_extension: Suspicious implicit sign extension: x with type uint16
  (16 bits, unsigned) is promoted in (x << 16) | y to type int (32 bits,
  signed), then sign-extended to type unsigned long (64 bits, unsigned).
  If (x << 16) | y is greater than 0x7FFFFFFF, the upper bits of the
  result will all be 1.
 File: bora-vmsoft/services/plugins/dndcp/pointer.cpp
 Function: PointerSetPos

6 years agoChanges to common source files not directly applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:22 +0000 (11:18 -0700)] 
Changes to common source files not directly applicable to open-vm-tools.

6 years agoCorrect several uninitialied varialbles reported by Coverity in dnd/cp code.
Oliver Kurth [Wed, 30 Oct 2019 18:18:22 +0000 (11:18 -0700)] 
Correct several uninitialied varialbles reported by Coverity in dnd/cp code.

- uninit_member: Non-static class member mRpc is not initialized in this
  constructor nor in any functions that it calls.
 File: bora/lib/dnd/rpcutil/rpcV3Util.cpp
 Function: RpcV3Util

- uninit_member: Non-static class member field mRpcChanCBList.xdrInSize is
  not initialized in this constructor nor in any functions that it calls.
 File: bora/vmx/tools/dndCPTransportGuestRpc.cpp
 Function: DnDCPTransportGuestRpc

- uninit_member: Non-static class member mGHDnDDropOccurred is not initialized
  in this constructor nor in any functions that it calls.
 File: bora-vmsoft/lib/dndGuestBase/dndUIX11.cpp
 Function: DnDUIX11

- uninit_member: Non-static class member m_main is not initialized in this
  constructor nor in any functions that it calls.
 File: bora-vmsoft/services/plugins/dndcp/copyPasteDnDX11.cpp
 Function: CopyPasteDnDX11

- uninit_member: Non-static class member mToolsAppCtx is not initialized in
  this constructor nor in any functions that it calls.
 File: bora-vmsoft/lib/dndGuest/vmGuestDnDCPMgr.hh
 Function: VMGuestDnDCPMgr

- uninit_member: Non-static class member mRpc is not initialized in this
  constructor nor in any functions that it calls.
 File: bora-vmsoft/lib/dndGuestBase/guestDnDSrc.cc
 Function: GuestDnDSrc

- uninit_member: Non-static class member mMsgSrc is not initialized in this
  constructor nor in any functions that it calls.
 File: bora/lib/dnd/rpcutil/rpcV4Util.cpp
 Function: RpcV4Util

- uninit_member: Non-static class member mIsActive is not initialized in this
  constructor nor in any functions that it calls.
 File: bora-vmsoft/lib/dndGuest/guestCopyPasteDest.cc
 Function: GuestCopyPasteDest

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:22 +0000 (11:18 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoAddress issues from Coverity scan of open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:22 +0000 (11:18 -0700)] 
Address issues from Coverity scan of open-vm-tools.

Fix two issues reported by the Coverity scan of open-vm-tools
and annotate a third:

* Validate siginfo read from a pipe in order to address
a tainted data issue reported in signalSource.c.

* Add a "Fall through" comment to address a missing break
reported in panic.c.

* Annotate an intentional NULL-dereference in guestSDKLog.c.

6 years agoFix misc. warnings related to strncpy usage.
Oliver Kurth [Wed, 30 Oct 2019 18:18:21 +0000 (11:18 -0700)] 
Fix misc. warnings related to strncpy usage.

For few files bundled in open-vm-tools package, one of the code
scanners reported the following warning.

" Easily used incorrectly; doesn't always \0-terminate or check for
invalid pointers"

Checked the files and modified the code to pass 'sizeof dest - 1'
as the third argument to avoid any warnings.

In one of the VGAUTH library functions, added a check for the input buffer
size and return a valid error.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:21 +0000 (11:18 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoSuppress a couple of coverity false alarms in FileLoggerOpen().
Oliver Kurth [Wed, 30 Oct 2019 18:18:21 +0000 (11:18 -0700)] 
Suppress a couple of coverity false alarms in FileLoggerOpen().

The stat() system call is used to determine whether to rotate logs.
There is no danger of time-of-check vs. time-of-use because the rotation
decision still holds even under the very-unlikely condition that the existing
log file size changes.

When rotating the logs, the service should not stop when a rename() fails
on an old file.  The process ignores the rename() return code intentionally.
The error condition cannot be logged because the process is already in the
log handling context and would either crash or risk a recursion loop
otherwise.  In addition, writing to stdout/stderr is useless, since the
process is running as a service and the stdout/stderr is reopened on /dev/null.

Therefore, the above two coverity issues are suppressed in the code.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Wed, 30 Oct 2019 18:18:21 +0000 (11:18 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoFix misc. warnings in base64.c
Oliver Kurth [Wed, 30 Oct 2019 18:18:20 +0000 (11:18 -0700)] 
Fix misc. warnings in base64.c

At few places in the code, %ld is being used as the format specifier for
printing the variables of size_t datatype. Changed it to %FMTSZu.

6 years agostop systemd-243 udev complaints #371
Oliver Kurth [Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)] 
stop systemd-243 udev complaints #371

Address issues from pull request #371 on github:
- fix substiution variables for systemd-243
- fix permissions of rules file
See https://github.com/vmware/open-vm-tools/pull/371

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon source file changes not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)] 
Common source file changes not directly applicable to open-vm-tools.

6 years agoFix 'variable scope can be reduced' warnings.
Oliver Kurth [Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)] 
Fix 'variable scope can be reduced' warnings.

One of the code quality checkers (Codacy) reported the following
issue for a bunch of files bundled in 'open-vm-tools'.

"""
Fix 'The scope of the variable 'var' can be reduced.'
"""

Checked all applicable files and removed the variable initialization
where it's really not necessary.

This is really not a major issue but it's no harm fixing.

6 years agoLOG goes variadic in dndCPTransportGuestRpc.cpp
Oliver Kurth [Mon, 28 Oct 2019 23:12:41 +0000 (16:12 -0700)] 
LOG goes variadic in dndCPTransportGuestRpc.cpp

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:41 +0000 (16:12 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:41 +0000 (16:12 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCode clean up in common source files.
Oliver Kurth [Mon, 28 Oct 2019 23:12:41 +0000 (16:12 -0700)] 
Code clean up in common source files.

Fix macros so they work in the world of Log Facility newlining.

The Log Facility no longer accepts appending calls into a single
line.  As such, some macros need to be "fixed up".

6 years agoRecord new tools patch and update versions in vm_tools_version.h.
Oliver Kurth [Mon, 28 Oct 2019 23:12:40 +0000 (16:12 -0700)] 
Record new tools patch and update versions in vm_tools_version.h.

6 years agoBack out previous code clean up changes.
Oliver Kurth [Mon, 28 Oct 2019 23:12:40 +0000 (16:12 -0700)] 
Back out previous code clean up changes.

6 years agoCode clean up in common source files.
Oliver Kurth [Mon, 28 Oct 2019 23:12:40 +0000 (16:12 -0700)] 
Code clean up in common source files.

Fix macros so they work in the world of Log Facility newlining.

The Log Facility no longer accepts appending calls into a single
line.  As such, some macros need to be "fixed up".

6 years agoFix a minor issue reported by Codacy code scanner.
Oliver Kurth [Mon, 28 Oct 2019 23:12:40 +0000 (16:12 -0700)] 
Fix a minor issue reported by Codacy code scanner.

One of the code quality checkers (Codacy) reported the following
issue for a bunch of files bundled in 'open-vm-tools'.

"""
Fix 'variable has been re-assigned before it's value has been used'
"""

Checked all applicable files and removed the variable initialization
where it's really not necessary.

This is really not a major issue but it's no harm fixing.

6 years agoFix minor NULL check in DataMap_Copy function.
Oliver Kurth [Mon, 28 Oct 2019 23:12:39 +0000 (16:12 -0700)] 
Fix minor NULL check in DataMap_Copy function.

One of the code scanners identified the following issue in
DataMap_Copy function.

"""
Either the condition 'src==NULL' is redundant or there is possible null pointer dereference: src.
"""

Fixed the issue by moving the NULL check to the top of the function.

6 years agoCommon header file change not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:39 +0000 (16:12 -0700)] 
Common header file change not directly applicable to open-vm-tools.

6 years agoVariadic LOG macros and fewer trailing newlines
Oliver Kurth [Mon, 28 Oct 2019 23:12:39 +0000 (16:12 -0700)] 
Variadic LOG macros and fewer trailing newlines

It's (long past) time we started using variadic LOG macros
and stopped requiring a newline at the end of every format
string.  A previous removed the newline requirement recently.

-   LOG(N, ("format string\n", arg1, arg2))
+   LOG(N, "format string", arg1, arg2)

The important parts of this change are buried in macro madness.
The key bit is the LOG_BYNAME macro, which now can be written
to be variadic.

To support both styles simultaneously, this change adds a macro
LOGLEVEL_VARIADIC which switches the definition of LOG_BYNAME to
variadic (e.g. remove extra parens).

Following this change, we can convert files to the variadic version
and set LOGLEVEL_VARIADIC.

6 years agoAssertion after use fix - lib/file/standalone.c
Oliver Kurth [Mon, 28 Oct 2019 23:12:39 +0000 (16:12 -0700)] 
Assertion after use fix - lib/file/standalone.c

One of the code scanners caught this one.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 28 Oct 2019 23:12:39 +0000 (16:12 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoMerge branch 'stable-11.0.x'
Oliver Kurth [Mon, 21 Oct 2019 22:30:15 +0000 (15:30 -0700)] 
Merge branch 'stable-11.0.x'

6 years agoupdate version to 11.0.1 stable-11.0.1
Oliver Kurth [Mon, 21 Oct 2019 21:58:04 +0000 (14:58 -0700)] 
update version to 11.0.1

6 years agoupdate ChangeLog
Oliver Kurth [Mon, 21 Oct 2019 21:57:31 +0000 (14:57 -0700)] 
update ChangeLog

6 years agoupdate Release Notes
Oliver Kurth [Mon, 21 Oct 2019 21:57:07 +0000 (14:57 -0700)] 
update Release Notes

6 years agoFix leaks in ListAliases and ListMappedAliases.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Fix leaks in ListAliases and ListMappedAliases.

The 'record' for each alias was being leaked.

6 years agoFix leaks in ListAliases and ListMappedAliases.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Fix leaks in ListAliases and ListMappedAliases.

The 'record' for each alias was being leaked.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon source file change not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Common source file change not directly applicable to open-vm-tools.

Backing out previous change.

6 years agoCommon source file changes not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Common source file changes not directly applicable to open-vm-tools.

6 years agoCommon source file changes not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:35 +0000 (17:48 -0700)] 
Common source file changes not directly applicable to open-vm-tools.

6 years agoCommon source file changes not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common source file changes not directly applicable to open-vm-tools.

6 years agoCommon header file changes not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common header file changes not directly applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoMove /etc/vmware-tools/vm-support to /usr/bin/ in open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Move /etc/vmware-tools/vm-support to /usr/bin/ in open-vm-tools.

Change scripts/Makefile.am to know about the new location.

This fix requires the following updates to the vendor scripts:
The rules files have "chmod /etc/vmware-tools/vm-support".
The spec files have "mv /etc/vmware-tools/vm-support /usr/bin".

6 years agoCommon source file changes not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common source file changes not directly applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon source file change not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:34 +0000 (17:48 -0700)] 
Common source file change not directly applicable to open-vm-tools.

Hostinfo: Improve ESXi recognition

6 years agoFix AliasSafeRenameFiles() in vgauth/serviceImpl/alias.c
Oliver Kurth [Thu, 3 Oct 2019 00:48:33 +0000 (17:48 -0700)] 
Fix AliasSafeRenameFiles() in vgauth/serviceImpl/alias.c

If the alias mapfile was empty, the updated alias file was not properly
saved (renamed).  This issues has been fixed.

6 years agoCommon header file change not directly applicable to open-vm-tools.
Oliver Kurth [Thu, 3 Oct 2019 00:48:32 +0000 (17:48 -0700)] 
Common header file change not directly applicable to open-vm-tools.

6 years agolib/file: Close on exec bit tested incorrectly
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
lib/file: Close on exec bit tested incorrectly

The test should be on access, not flags.

6 years agoCommon source file change not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Common source file change not directly applicable to open-vm-tools.

6 years agoAdd a Coverity annotation to lib/vmGuestLib/vmGuestLib.c
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Add a Coverity annotation to lib/vmGuestLib/vmGuestLib.c

A previous change adding Coverity annotations to vmGuestLib.c
omitted one.  Adding for completeness although it does not actually
affect Coverity results.

6 years agoFlipped the default value of config option "hgfs.packetSize.large" to TRUE.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Flipped the default value of config option "hgfs.packetSize.large" to TRUE.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoFix potential overflow in timeSync reported by Coverity
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Fix potential overflow in timeSync reported by Coverity

Issue: Potentially overflowing expression: data->timeSyncPeriod * 1000000U
       is evaluated using 32-bit arithmetic, and then used in a context
       that expects an expression of type uint64.
Fix: explict type conversion.

6 years agoGitHub Issue #367. Remove references to deprecated G_INLINE_FUNC.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
GitHub Issue #367. Remove references to deprecated G_INLINE_FUNC.

G_INLINE_FUNC was a work-around for compilers that didn't support
static inline.  Change uses of it to static inline.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 30 Sep 2019 23:24:27 +0000 (16:24 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agosync files from stable-11.0.0
Oliver Kurth [Fri, 20 Sep 2019 23:14:08 +0000 (16:14 -0700)] 
sync files from stable-11.0.0

6 years agoMerge tag 'stable-11.0.0'
Oliver Kurth [Fri, 20 Sep 2019 23:10:09 +0000 (16:10 -0700)] 
Merge tag 'stable-11.0.0'

6 years agoupdate ChangeLog stable-11.0.0
Oliver Kurth [Fri, 20 Sep 2019 20:28:29 +0000 (13:28 -0700)] 
update ChangeLog

6 years agorelease notes for 11.0.0
Oliver Kurth [Fri, 20 Sep 2019 20:11:24 +0000 (13:11 -0700)] 
release notes for 11.0.0

6 years agoupdate copyright header for lib/include/vmware/guestrpc/tclodefs.h
Oliver Kurth [Fri, 20 Sep 2019 18:08:35 +0000 (11:08 -0700)] 
update copyright header for lib/include/vmware/guestrpc/tclodefs.h

6 years agoupdate build number for release
Oliver Kurth [Fri, 20 Sep 2019 18:07:16 +0000 (11:07 -0700)] 
update build number for release

6 years agoFix Misc. issues in vmtoolsLog.c
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Fix Misc. issues in vmtoolsLog.c

* g_malloc0 aborts the application if the specificed amount of memory
  cannot be allocated. Hence, no need to have a NULL check for the
  return value of g_malloc0.

* Removed one if block in VMToolsLogInt since the if check will never
  be TRUE.

* g_strdup returns NULL if the input argument is NULL. Removed
  the unnecessary NULL checks for the input argument to g_strdup at few
  places.

6 years ago[AppInfo] OVT Coverity fixes.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
[AppInfo] OVT Coverity fixes.

The return value of Str_Snprintf is not being checked for negative
values and is directly passed to DynBuf_Append which accepts only
positive values. This may cause issues if Str_Snprintf fails. Added
a trivial check.

Initialized appList variable to NULL.

6 years agoBackout the previous AppInfo OVT Coverity fix.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Backout the previous AppInfo OVT Coverity fix.

6 years ago[AppInfo] OVT Coverity fixes.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
[AppInfo] OVT Coverity fixes.

The return value of Str_Snprintf is not being checked for negative
values and is directly passed to DynBuf_Append which accepts only
positive values. This may cause issues if Str_Snprintf fails. Added
a trivial check.

6 years agoAdd missing copyright header.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Add missing copyright header.

The copyright header is missing in one of the files (Makefile.am)
that is bundled in open-vm-tools tar file. Added the necessary
copyright header.

6 years agoCommon header file change not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Common header file change not directly applicable to open-vm-tools.

6 years agoCommon header file change not applicable to open-vm-tools.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Common header file change not applicable to open-vm-tools.

6 years agoFix Coverity scan issues in open-vm-tools.
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Fix Coverity scan issues in open-vm-tools.

6 years agoInclude AppInfo related files in Tools OVT
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Include AppInfo related files in Tools OVT

This changeset contains the necessary changes to include appinfo plugin
related files in Tools OVT bundle.

6 years agoFix the deployPkg status files when privateTmp is enabled
Oliver Kurth [Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)] 
Fix the deployPkg status files when privateTmp is enabled

Currently, deployPkg status file path is hardcoded to /tmp.  When
privateTmp is enabled in the guest VM, /tmp is hidden from the rest
of the system and is wiped on reboot.  So need use different path to
save the status file.

This change is changing deployPkg status file path from /tmp to /var/log

6 years agoBackout previous common header file change.
Oliver Kurth [Mon, 9 Sep 2019 18:23:48 +0000 (11:23 -0700)] 
Backout previous common header file change.

6 years agoCommon header file change not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 9 Sep 2019 18:23:48 +0000 (11:23 -0700)] 
Common header file change not directly applicable to open-vm-tools.

6 years agoMore Coverity annotations for open-vm-tools issues.
Oliver Kurth [Mon, 9 Sep 2019 18:23:48 +0000 (11:23 -0700)] 
More Coverity annotations for open-vm-tools issues.

Add annotations for additional Coverity-reported issues so that
Coverity scans of ovt will automatically classify these issues
as "intentional."  Such annotations are useful both for internal
use as well as for partners who run Coverity scans of open-vm-tools.

6 years agoBackout previous default "hgfs.packetSize.large" setting
Oliver Kurth [Mon, 9 Sep 2019 18:23:48 +0000 (11:23 -0700)] 
Backout previous default "hgfs.packetSize.large" setting

The default value of config option "hgfs.packetSize.large" is now FALSE.

6 years agoCommon header file change not directly applicable to open-vm-tools.
Oliver Kurth [Mon, 9 Sep 2019 18:23:48 +0000 (11:23 -0700)] 
Common header file change not directly applicable to open-vm-tools.

6 years agoDue to a quirk the way patches were generated, the 'coomon-agent' directory was not...
Oliver Kurth [Fri, 30 Aug 2019 00:14:39 +0000 (17:14 -0700)] 
Due to a quirk the way patches were generated, the 'coomon-agent' directory was not removed as intended, but just contained empty files

6 years agoDue to a quirk the way patches were generated, the 'coomon-agent' directory was not...
Oliver Kurth [Fri, 30 Aug 2019 00:13:05 +0000 (17:13 -0700)] 
Due to a quirk the way patches were generated, the 'coomon-agent' directory was not removed as intended, but just contained empty files