Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
Merge commit 'aaa20859c29247ca89a68f47c1a7b1a3b15bae09' into stable-9.10.x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try markdown
|
|
this is the README file inside open-vm-tools/
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
Adding "void RpcChannel_SetBackdoorOnly(void)" API to allow to disable vsocket
if needed.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
We shipped 2013 with 9.5, so the next release will have 9.6.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Nobody is using it anymore.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
. 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>
|
|
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>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Windows rename fails if the target files are open. Posix does not
have that restriction.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
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>
|
|
. 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>
|
|
Add more logging for tracing file IO calls.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|
|
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
|