]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
8 years agoFixed MarkDown Syntax 160/head
Markus KARG [Sat, 22 Apr 2017 10:04:56 +0000 (12:04 +0200)] 
Fixed MarkDown Syntax

The MarkDown Syntax was wrong, so the file README.md rendered rather urgly on GitHub.

8 years agoresolve conflict in ReleaseNotes.md
Oliver Kurth [Sat, 25 Feb 2017 00:27:17 +0000 (16:27 -0800)] 
resolve conflict in ReleaseNotes.md

8 years agoupdate ReleaseNotes.md stable-10.1.5
Oliver Kurth [Fri, 24 Feb 2017 22:15:37 +0000 (14:15 -0800)] 
update ReleaseNotes.md

8 years agoRemoved the unrelated mention of kernel modules.
Ravindra Kumar [Wed, 22 Feb 2017 21:39:50 +0000 (13:39 -0800)] 
Removed the unrelated mention of kernel modules.

8 years agoupdate NEWS ChangeLog README
Oliver Kurth [Wed, 22 Feb 2017 21:07:00 +0000 (13:07 -0800)] 
update NEWS ChangeLog README

8 years agoupdate build numbers
Oliver Kurth [Wed, 22 Feb 2017 21:06:40 +0000 (13:06 -0800)] 
update build numbers

8 years agoExclude non-directory and non-existing paths during quiescing.
Oliver Kurth [Fri, 17 Feb 2017 21:26:23 +0000 (13:26 -0800)] 
Exclude non-directory and non-existing paths during quiescing.

8 years agoMap certain PAM errors to VGAUTH_E_AUTHENTICATION_DENIED.
Oliver Kurth [Fri, 17 Feb 2017 21:26:23 +0000 (13:26 -0800)] 
Map certain PAM errors to VGAUTH_E_AUTHENTICATION_DENIED.

9 years agos/pacakge/package
Peter Goldsborough [Fri, 10 Feb 2017 01:35:46 +0000 (01:35 +0000)] 
s/pacakge/package

9 years agobump version to 10.1.5
Oliver Kurth [Fri, 20 Jan 2017 03:22:59 +0000 (19:22 -0800)] 
bump version to 10.1.5

9 years agoUpdate copyright year
Oliver Kurth [Thu, 19 Jan 2017 01:28:20 +0000 (17:28 -0800)] 
Update copyright year

9 years agoBump the VMware Tools update release to version 10.1.5
Oliver Kurth [Thu, 19 Jan 2017 01:28:20 +0000 (17:28 -0800)] 
Bump the VMware Tools update release to version 10.1.5

Change the "current" version for the VMware Tools update release to
be 10.1.5.   This bump is to allow versions numbers for hot patches
which have been or may yet be issued before the update is GA.

9 years agoBack-out previous Copyright update.
Oliver Kurth [Thu, 19 Jan 2017 01:28:19 +0000 (17:28 -0800)] 
Back-out previous Copyright update.

9 years agoUpdate copyright year to 2017.
Oliver Kurth [Thu, 19 Jan 2017 01:28:18 +0000 (17:28 -0800)] 
Update copyright year to 2017.

9 years agoUpdate tools copyright to 2017
Oliver Kurth [Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)] 
Update tools copyright to 2017

9 years agoChange VMware Tools ISO mapping for centos and oraclelinux effective with 10.1.1
Oliver Kurth [Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)] 
Change VMware Tools ISO mapping for centos and oraclelinux effective with 10.1.1

No impact to open-vm-tools.

9 years agoAdd enhanced log messages and a few new log messages.
Oliver Kurth [Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)] 
Add enhanced log messages and a few new log messages.

9 years agoThaw filesystems if the snapshot commit message to VMX fails
Oliver Kurth [Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)] 
Thaw filesystems if the snapshot commit message to VMX fails

9 years agoSet/update the VMware Tools version for the 10.1.1 release
Oliver Kurth [Thu, 19 Jan 2017 01:28:16 +0000 (17:28 -0800)] 
Set/update the VMware Tools version for the 10.1.1 release

9 years agoUpdate copyright year
Oliver Kurth [Thu, 19 Jan 2017 01:28:20 +0000 (17:28 -0800)] 
Update copyright year

9 years ago- add missing directory common-agent/etc/config
Oliver Kurth [Sat, 24 Dec 2016 00:46:38 +0000 (16:46 -0800)] 
- add missing directory common-agent/etc/config
- fix .gitignore, so the directory above will not be ignored any more

9 years ago- add missing directory common-agent/etc/config
Oliver Kurth [Sat, 24 Dec 2016 00:46:38 +0000 (16:46 -0800)] 
- add missing directory common-agent/etc/config
- fix .gitignore, so the directory above will not be ignored any more

9 years agorelease 10.1.0 from build 4449150 stable-10.1.0
Douglas Souders [Fri, 4 Nov 2016 20:12:16 +0000 (16:12 -0400)] 
release 10.1.0 from build 4449150

9 years agoAdded details about open-vm-tools-desktop
Ravindra Kumar [Wed, 15 Jun 2016 20:14:07 +0000 (13:14 -0700)] 
Added details about open-vm-tools-desktop

10 years agochangelog for 10.0.5 stable-10.0.5
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:59:42 +0000 (22:59 -0800)] 
changelog for 10.0.5

10 years agoversion bump to 10.0.5
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:33:40 +0000 (22:33 -0800)] 
version bump to 10.0.5

10 years ago[Bug 1526360] fix timestamp check
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:28:27 +0000 (22:28 -0800)] 
[Bug 1526360] fix timestamp check

10 years ago[Bug 1531545] Add an error handler to X11 resolutionSet
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:27:40 +0000 (22:27 -0800)] 
[Bug 1531545] Add an error handler to X11 resolutionSet

10 years ago[Bug 1503195] Kill tasklet when unloading vmci module
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:26:38 +0000 (22:26 -0800)] 
[Bug 1503195] Kill tasklet when unloading vmci module

10 years ago[Bug 1519223] Avoid warning message when logging group is missing.
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:19:34 +0000 (22:19 -0800)] 
[Bug 1519223] Avoid warning message when logging group is missing.

10 years ago[Bug 1473600] Skip freezing autofs mounts.
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:17:59 +0000 (22:17 -0800)] 
[Bug 1473600] Skip freezing autofs mounts.

10 years ago[Bug 1507819] Workaround fix to avoid rpc warning messages flooding by changing log...
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:17:12 +0000 (22:17 -0800)] 
[Bug 1507819] Workaround fix to avoid rpc warning messages flooding by changing log level to debug.

10 years ago[Bug 1526327] make vmhgfs compatible with Linux kernel 4.2
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:10:33 +0000 (22:10 -0800)] 
[Bug 1526327] make vmhgfs compatible with Linux kernel 4.2

10 years agoremove cache files
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:01:24 +0000 (22:01 -0800)] 
remove cache files

10 years agoadd .gitignore
Dyno Hongjun Fu [Tue, 24 Nov 2015 06:00:25 +0000 (22:00 -0800)] 
add .gitignore

10 years agoUpdate ReleaseNotes.md
dsouders [Tue, 1 Sep 2015 21:04:28 +0000 (17:04 -0400)] 
Update ReleaseNotes.md

10 years agoAdding Release Notes
Douglas Souders [Tue, 1 Sep 2015 12:56:05 +0000 (08:56 -0400)] 
Adding Release Notes

10 years agorelease 10.0.0 from build 3000743 open-vm-tools-10.0.0-3000743
Douglas Souders [Fri, 28 Aug 2015 13:56:56 +0000 (09:56 -0400)] 
release 10.0.0 from build 3000743

10 years agoUpdate README.md
Sankar A Tanguturi [Sat, 22 Aug 2015 01:00:04 +0000 (18:00 -0700)] 
Update README.md

10 years agoCorrected URL for automake
Ravindra Kumar [Fri, 21 Aug 2015 19:01:29 +0000 (12:01 -0700)] 
Corrected URL for automake

10 years agorelease 9.10.2 from build 2822639 stable-9.10.2
Douglas Souders [Tue, 16 Jun 2015 21:49:24 +0000 (17:49 -0400)] 
release 9.10.2 from build 2822639

10 years agoFix README.md stable-9.10.0
Oliver Kurth [Thu, 19 Mar 2015 18:11:07 +0000 (11:11 -0700)] 
Fix README.md
Merge commit 'aaa20859c29247ca89a68f47c1a7b1a3b15bae09' into stable-9.10.x

10 years agoUpdate README.md
Oliver Kurth [Thu, 19 Mar 2015 00:25:02 +0000 (17:25 -0700)] 
Update README.md

10 years agorelease 9.10.0 from build 2476743
Oliver Kurth [Wed, 18 Mar 2015 22:52:50 +0000 (15:52 -0700)] 
release 9.10.0 from build 2476743

10 years agoUpdate README.md
Oliver Kurth [Thu, 19 Mar 2015 00:07:24 +0000 (17:07 -0700)] 
Update README.md

11 years agoUpdate README.md
Dyno Hongjun Fu [Tue, 1 Jul 2014 23:12:29 +0000 (16:12 -0700)] 
Update README.md

11 years agoUpdate README.md
Dyno Hongjun Fu [Tue, 1 Jul 2014 23:10:59 +0000 (16:10 -0700)] 
Update README.md

11 years agoUpdate README.md
Dyno Hongjun Fu [Tue, 1 Jul 2014 23:08:29 +0000 (16:08 -0700)] 
Update README.md

11 years agoUpdate README.md
Dyno Hongjun Fu [Tue, 1 Jul 2014 23:04:48 +0000 (16:04 -0700)] 
Update README.md

try markdown

11 years agoCreate README.md
Dyno Hongjun Fu [Tue, 1 Jul 2014 22:56:12 +0000 (15:56 -0700)] 
Create README.md

this is the README file inside open-vm-tools/

12 years agoUpdating open-vm-tools version for release 2013.09.16-1328054. 2013.09.16-1328054
VMware, Inc [Mon, 23 Sep 2013 05:56:07 +0000 (22:56 -0700)] 
Updating open-vm-tools version for release 2013.09.16-1328054.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoAsyncSocket: Update AsyncSocket_GetRemoteIPAddress for IPv6 support.
VMware, Inc [Wed, 18 Sep 2013 03:43:28 +0000 (20:43 -0700)] 
AsyncSocket: Update AsyncSocket_GetRemoteIPAddress for IPv6 support.

AsyncSocket_GetRemoteIPAddress offered the return of the IP in integer and
string formats, none of the callers cared for the integer return so remove it.
Update name appropriately
AsyncSocket_GetRemoteIPAddress->AsyncSocket_GetRemoteIPStr.
AsyncSocket_GetRemoteIPAddress only supported the returning of a IPv4 string,
utilize Posix_GetNameInfo that uses getnameinfo which is IPv6 compliant.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoAsyncSocket: Removed unused AsyncSocket_BindUDP.
VMware, Inc [Wed, 18 Sep 2013 03:43:03 +0000 (20:43 -0700)] 
AsyncSocket: Removed unused AsyncSocket_BindUDP.

AsyncSocket_BindUDP is unused, and looking at it I am not sure if it ever worked
as described, since it did not actually bind to the port specified, just a UDP
listener.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:42:40 +0000 (20:42 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoAllow for future use of AF_UNSPEC in AsyncSocket library
VMware, Inc [Wed, 18 Sep 2013 03:42:24 +0000 (20:42 -0700)] 
Allow for future use of AF_UNSPEC in AsyncSocket library

Create a socketFamily switch in AsyncSocket_Connect and
AsyncSocket_ConnectWebSocket for future IPv6 integration.

Allow for future use of AF_UNSPEC when a connection does not care if it is
AF_INET or AF_INET6. Since AsyncSocket does not fully support AF_INET6 yet and
our AF_INET6 test bed is not yet completed, hard code all callers to AF_INET.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoProvide a kill-switch for using vsocket in RpcChannel.
VMware, Inc [Wed, 18 Sep 2013 03:42:16 +0000 (20:42 -0700)] 
Provide a kill-switch for using vsocket in RpcChannel.

Adding "void RpcChannel_SetBackdoorOnly(void)" API to allow to disable vsocket
if needed.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoUpdate AsyncSocketResolveAddr to allow AF_UNSPEC and AF_INET6 ai_family.
VMware, Inc [Wed, 18 Sep 2013 03:42:05 +0000 (20:42 -0700)] 
Update AsyncSocketResolveAddr to allow AF_UNSPEC and AF_INET6 ai_family.

AsyncSocketResolveAddr currently only accepts searches for AF_INET. Update it to
search for AF_INET6 or both with AF_UNSPEC. Since we no longer need to return
sockaddr_in for AsyncSocket_SendTo, only populate sockaddr. Also add a
convenient IP string generation after resolve so all callers do not need to do
the same operation tp log the IP string with port number.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoVMCI/VSOCK: Bump version 9.5 => 9.6 for next release
VMware, Inc [Wed, 18 Sep 2013 03:41:58 +0000 (20:41 -0700)] 
VMCI/VSOCK: Bump version 9.5 => 9.6 for next release

We shipped 2013 with 9.5, so the next release will have 9.6.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoRemove AsyncSocket_SendTo
VMware, Inc [Wed, 18 Sep 2013 03:41:38 +0000 (20:41 -0700)] 
Remove AsyncSocket_SendTo

Nobody is using it anymore.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:41:16 +0000 (20:41 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agodesktopEvents: Leave libICE rug firmly under libSM.
VMware, Inc [Wed, 18 Sep 2013 03:41:27 +0000 (20:41 -0700)] 
desktopEvents: Leave libICE rug firmly under libSM.

While the libICE spec's section on error handling suggests applications
close libICE connections in response to I/O errors, libSM (which
sits atop libICE) continues to refer to such deceased libICE
connections, and doing so during shutdown leads to an app crash.
(libSM should've registered an I/O error handler of its own which would
run before the application's, but it doesn't.  Oh well.)

To work around this, we'll detach the ICE connection from our
application event loop but leave its handle alone.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoRemove ASSERT_OR_IN_PANIC() from public/vm_assert.h
VMware, Inc [Wed, 18 Sep 2013 03:41:07 +0000 (20:41 -0700)] 
Remove ASSERT_OR_IN_PANIC() from public/vm_assert.h

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoGet rid of ASSERT_LENGTH.
VMware, Inc [Wed, 18 Sep 2013 03:40:51 +0000 (20:40 -0700)] 
Get rid of ASSERT_LENGTH.

It was used way back in ancient times in the binary translator
but today no more uses remain. So let us remove this global

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:40:45 +0000 (20:40 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoGet rid of ASSERT_ALWAYS_AVAILABLE
VMware, Inc [Wed, 18 Sep 2013 03:40:38 +0000 (20:40 -0700)] 
Get rid of ASSERT_ALWAYS_AVAILABLE

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoFix AsyncSocket reference leak when using IVmdbPoll
VMware, Inc [Wed, 18 Sep 2013 03:40:17 +0000 (20:40 -0700)] 
Fix AsyncSocket reference leak when using IVmdbPoll

A reference is taken when an AsyncSocket callback is registered in
IVmdbPoll to protect the AsyncSocket from being freed while the callback
has been scheduled to run.  That reference is released when the callback
is unregistered if the callback is not going to run, or from the
callback itself if it is already scheduled.  The current code does not
correctly handle the case when the callback unregister itself, as it
needs to explicitly release the reference in that case.  This change
also adds a Bool to AsyncSocket so we can distinguish between send
callback that is registered as a timer callback so that we know which
type of callback to remove, which is necessary to keep the reference
count correct.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoReport correct OS name for ESXi guests
VMware, Inc [Wed, 18 Sep 2013 03:39:53 +0000 (20:39 -0700)] 
Report correct OS name for ESXi guests

Prior to this change, vi client would say that the Guest OS was
"Other (32 bit)" whenever Tools were running in an ESXi guest.
Now, the Guest OS is reported as "VMware ESXi 5.x."

Note that Tools do not run in ESXi 4.x guests.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoImplement VMware Tools for ESXi 6.0 guests.
VMware, Inc [Wed, 18 Sep 2013 03:39:48 +0000 (20:39 -0700)] 
Implement VMware Tools for ESXi 6.0 guests.

This change provides limited VMware Tools support for ESXi 6.0
guests.  The powerOps and guestInfo plugins are supported.
Only IPv4 addresses are reported, since those are the only
ones we can get through the vmkuser library.

VMware Tools for ESXi 6.0 are packed as two VIBs on a single
ISO image.  One VIB contains the glib libraries that are
missing from the standard ESX distribution, and the other
VIB contains the tools themselves.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHarden HostinfoOSData against $PATH attacks.
VMware, Inc [Wed, 18 Sep 2013 03:39:34 +0000 (20:39 -0700)] 
Harden HostinfoOSData against $PATH attacks.

We are doing a popen("lsb_release... ") when attempting to
determine host details in hostinfoPosix.c. Using popen means that
$PATH is walked when looking for the lsb_release binary, and that
may give an attacker the ability to run a malicious version of
lsb_release.

This change does two things,

a) Hard code the path to lsb_release. I've searched around
   the web and I believe the path is always "/usr/bin/lsb_release"
   so let's not leave this up to chance.

b) Stop running HostinfoGetCmdOutput with elevated privileges. Drop
   to non-root when possible. If someone sneaks in a new call to
   HostinfoGetCmdOutput and doesn't use a full path, then we will
   hopefully avoid a firedrill. I'm only applying this to Linux
   because the Fusion build barfed when I tried to compile with
   without the vmx86_linux.

I think either (a) or (b) would be enough but I'm doing both,
because each individually is correct. Also note that in the blog
post by Tavis Ormandy calls out doing (a) as not enough,
   http://blog.cmpxchg8b.com/2013/08/security-debianisms.html
His example uses a bash feature that allows functions to be
exported. I haven't been able to get that to work on my Ubuntu
machine.

To test I'm manually run Linux WS and Fusion and verified that
the logs look correct.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:39:28 +0000 (20:39 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoFix nested logging for VmxLogger with vsocket channel.
VMware, Inc [Wed, 18 Sep 2013 03:39:21 +0000 (20:39 -0700)] 
Fix nested logging for VmxLogger with vsocket channel.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Clean up HGFS server unpack file name V3 arguments
VMware, Inc [Wed, 18 Sep 2013 03:39:10 +0000 (20:39 -0700)] 
HGFS: Clean up HGFS server unpack file name V3 arguments

The HGFS server unpack file name argument for V3 packets generates coverity
warnings as it stands. It is also just plain dubious in its usage using the
out argument even when not initialized in the failure case.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoInternal branch sync. Included in this change:
VMware, Inc [Wed, 18 Sep 2013 03:38:49 +0000 (20:38 -0700)] 
Internal branch sync. Included in this change:

. Support Linux Quiescing for vSphere Replication
. changes in shared code that don't affect open-vm-tools functionality

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChange glib logging in RpcChannel to use Debug/Warning/Panic.
VMware, Inc [Wed, 18 Sep 2013 03:38:24 +0000 (20:38 -0700)] 
Change glib logging in RpcChannel to use Debug/Warning/Panic.

Change glib logging in RpcChannel to use Debug/Warning/Panic so RpcChannel
logging can be controlled by different logging stubs in different
applications(rpctool/vgauth/toolsd etc).

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoAdd a new SetDisplayScaling RPC to the list of capabilities.
VMware, Inc [Wed, 18 Sep 2013 03:37:35 +0000 (20:37 -0700)] 
Add a new SetDisplayScaling RPC to the list of capabilities.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:36:27 +0000 (20:36 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Make Linux client compile on kernels 3.11
VMware, Inc [Wed, 18 Sep 2013 03:36:04 +0000 (20:36 -0700)] 
HGFS: Make Linux client compile on kernels 3.11

HgfsReaddir has been replaced with HgfsIterate for the newer releases
of the kernel 3.11 and newer.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Partial fix for corruption when using different file handles to the same file
VMware, Inc [Wed, 18 Sep 2013 03:35:50 +0000 (20:35 -0700)] 
HGFS: Partial fix for corruption when using different file handles to the same file

File is corrupted while our customer using two threads to read or write a
file via Linux HGFS client. This is because the read handle interferes with
the writes by causing a revalidation of the inode's file attributes. These
were mishandled wrt to flushing out the cached pages. If the new attributes
were different for modification time or file size then the pages in the cache
were invalidated. This causes pages of valid data to be thrown away and the
writes lost. Therefore resulting in a file with gaps of blocks of zero bytes
where writes were not sent to the HGFS server.

This is fixed by replicating what NFS does in this regard, which is only invalidate
the cache if the HGFS server returned file size only differs from the cached
inode value and only then if the new size is greater.

Cleaned up the write begin and end which was initially causing problems due
to very buggy code. Have now based this on simplicity from fs/libfs.c and
the simple_write_begin/simple_write_end which shows what the minimal settings
should do handling writes to pages and partial page writes.
These can be viewed under you favorite linux source cross-reference website.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoFix AssertOnCompileFailed for GCC 4.8 (kernel 3.10+)
VMware, Inc [Wed, 18 Sep 2013 03:35:40 +0000 (20:35 -0700)] 
Fix AssertOnCompileFailed for GCC 4.8 (kernel 3.10+)

GCC 4.8 now includes -Wunused-local-typedefs as part of -Wall.  This
causes it to spew a gazillion warnings when compiling our modules on
3.10+ kernels.  Because it's a typedef we can't use the (void) cast
trick, so we need to use attributes.  This change introduces
UNUSED_TYPE to vm_basic_types.h and uses it where appropriate to make
the compiler happy when building our modules.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChange FileIO_AtomicUpdate to not close files prior to rename on Posix.
VMware, Inc [Wed, 18 Sep 2013 03:35:32 +0000 (20:35 -0700)] 
Change FileIO_AtomicUpdate to not close files prior to rename on Posix.

Windows rename fails if the target files are open.  Posix does not
have that restriction.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoVMCI: make guest driver work with virtual IOMMU
VMware, Inc [Wed, 18 Sep 2013 03:35:16 +0000 (20:35 -0700)] 
VMCI: make guest driver work with virtual IOMMU

Right now we use vmalloc()/alloc_page() for our guest queuepair pages
(and bitmap page) and then do a virt_to_phys() before passing them down
to the device.  That's not going to work if DMA remapping is enabled,
since the IOMMU has no idea about the mappings.  Switch to
pci_alloc_consistent() instead.  We still allocate each page
individually, since there's no guarantee that we'll get a contiguous
block of physical for an entire queuepair (especially since we allow up
to 128 MiB!).

Also made split between guest and host in the kernelIf struct much
clearer.  Now it's obvious which fields are which.

Finally, drop the PINNED flag from Linux.  That was only ever used by
vVol-Filter, and that's been moved over vPageChannel, which doesn't use
queuepairs but has custom rings.

Once this is in I'll port it to upstream.  I considered doing upstream
only, but that would mean pre-3.9 guests would be unable to use
IOMMU support.  We should really freeze the in-house driver after
this...

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoInternal branch sync. Included in this change:
VMware, Inc [Wed, 18 Sep 2013 03:35:10 +0000 (20:35 -0700)] 
Internal branch sync. Included in this change:

. turn on vgauth for authn checks
. changes in shared code that don't affect open-vm-tools functionality

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Linux client logging improvements
VMware, Inc [Wed, 18 Sep 2013 03:34:44 +0000 (20:34 -0700)] 
HGFS: Linux client logging improvements

Add more logging for tracing file IO calls.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:34:33 +0000 (20:34 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoBump up tools version to 9.6.0 for WS 10 RTM.
VMware, Inc [Wed, 18 Sep 2013 03:34:28 +0000 (20:34 -0700)] 
Bump up tools version to 9.6.0 for WS 10 RTM.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Clean up and improve Linux client logging
VMware, Inc [Wed, 18 Sep 2013 03:34:19 +0000 (20:34 -0700)] 
HGFS: Clean up and improve Linux client logging

Enhancing existing log statements to be useful, moving open flags utility function
into the utility file as in the future it should be used by open and create
entry points.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Improve Linux client logging
VMware, Inc [Wed, 18 Sep 2013 03:34:03 +0000 (20:34 -0700)] 
HGFS: Improve Linux client logging

Minor improvements to improve the logging of messages during debugging.
Remove the less than helpful messages that are extremely chatty.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoFix stringxx to call Unicode_Free() instead of free()
VMware, Inc [Wed, 18 Sep 2013 03:33:46 +0000 (20:33 -0700)] 
Fix stringxx to call Unicode_Free() instead of free()

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHousecleaning: VMIROM is dead
VMware, Inc [Wed, 18 Sep 2013 03:33:35 +0000 (20:33 -0700)] 
Housecleaning: VMIROM is dead

VMI was gone a long time ago. There are a few remnants
still present.
- includeCheck has a VMIROM macro that can go, plus all
locations it was copy-n-pasted into
- vmcore/public/paravirtualInterface.h was totally unreferenced.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoVIX: add opcode for RemoveAliasByCert
VMware, Inc [Wed, 18 Sep 2013 03:33:20 +0000 (20:33 -0700)] 
VIX: add opcode for RemoveAliasByCert

Trying to be tricky and sharing an opcode doesn't work when it comes to
tools-side disabling. So add an opcode for it and plumb it through.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:33:01 +0000 (20:33 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Fix Linux client inode 512B block count
VMware, Inc [Wed, 18 Sep 2013 03:32:57 +0000 (20:32 -0700)] 
HGFS: Fix Linux client inode 512B block count

The Linux HGFS client miscalculated the number of 512 byte blocks to set
in the inode for the file size. It was incorrectly using the HGFS
hardcoded block size instead of 512, which was 1024. This causes the
block count to be half the correct number and so du on a file reports
the incorrect size.  fstat also retrieves this block count in the stat
structure so it is likely more applications will break.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChange GuestLIB SDK to use new RpcChannel API.
VMware, Inc [Wed, 18 Sep 2013 03:32:52 +0000 (20:32 -0700)] 
Change GuestLIB SDK to use new RpcChannel API.

Change GuestLIB SDK to use new RpcChannel API.
1) Change RpcOut_* calls to RpcChanneel_* calls.
2) guestlib SDK now has extra dependency on GLIB and vmtoolslib as
secure guestRPC brings a lot new dependencies (rpcin, asyncsocket, ssl,
datamap, hashmap etc).
3) ship new glib and vmtoolslib for linux and windows packages.
4) merge logging functions (Debug(), Warning()) in vmtools and guestlib
into one to avoid having same function names defined in two libs.
5) update build in open vm tools.
6) app monitor needs to do similar thing, which will be handled by HA
team.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Fix Linux client symlinks
VMware, Inc [Wed, 18 Sep 2013 03:32:40 +0000 (20:32 -0700)] 
HGFS: Fix Linux client symlinks

The kernel buffer holding the symlink name was being freed incorrectly
when it was used by the VFS layer. This resulted in corruption and
invalid names being used when trying to lookup the symlink's target.

The HgfsFollowlink should not be calling vfs_follow_link but calling
nd_set_link to save the link target name that HGFS allocated.  To deal
with the release of the name, HgfsPutlink has now been added which the
VFS layer will call as needed and this function retrieves the name from
the name structure using nd_get_link and releases the buffer. Then for
completeness calls nd_set_link with NULL to clear it from the name
structure.  The VFS layer internally calls vfs_follow_link after the
HgfsFollowlink call passing the link target name from the name object
that HGFS stored. Hence, why HGFS should not call it directly.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:32:28 +0000 (20:32 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoHGFS: Fix a Linux client memory corruption
VMware, Inc [Wed, 18 Sep 2013 03:32:18 +0000 (20:32 -0700)] 
HGFS: Fix a Linux client memory corruption

When doing partial page writes the Linux HGFS client would trash the
initial part of the page leading up to the start of the write and also
trash the remaining part of the page after the written segment of the
page.

This trashing of the initial part of the page was incorrect and
overwrites earlier partial page writes to that page.  This was also
incorrect as the arguments for the offsets into the page were
miscalculated.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoAdd 4 new guestRPC commands for namespace manager.
VMware, Inc [Wed, 18 Sep 2013 03:32:13 +0000 (20:32 -0700)] 
Add 4 new guestRPC commands for namespace manager.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoInternal branch sync. Included in this change:
VMware, Inc [Wed, 18 Sep 2013 03:32:06 +0000 (20:32 -0700)] 
Internal branch sync. Included in this change:

. Fix FileIO_CloseAndUnlink() to handle unlink failures.
. Add Debuan 7,1 to the list of known OSes
. changes in shared code that don't affect open-vm-tools functionality

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Wed, 18 Sep 2013 03:31:40 +0000 (20:31 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
12 years agoFix parsing logic in guestInfo to parse vlan configured NICs
VMware, Inc [Wed, 18 Sep 2013 03:31:31 +0000 (20:31 -0700)] 
Fix parsing logic in guestInfo to parse vlan configured NICs

The regular expression used to parse routes /proc/net/route and
/proc/net/ipv6_route fail when the device names contain "." eg: eth0.80
which is how the interface names appear when we have VLANs configured.
This fix modifies the regex to handle this case by parsing until a
whitespace character is encountered.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>