head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.76 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.74 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.72 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.70 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.68 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.66 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.64 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.62 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.60 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.58 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.56 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.54 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.52 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.50 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.48 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.46 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.44 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.42 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.40 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.38 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.36 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.34 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.32 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.28 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.8 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.30 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.26 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.24 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.22 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.20 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.18 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.16 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.14 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.12 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.10 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.6 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.4 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.2 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.1.0.68 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.66 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.64 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.62 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.60 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.58 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.56 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.54 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.52 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.50 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.48 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.46 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.44 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.42 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.40 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.38 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.36 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.34 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.32 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.30 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.28 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.26 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.24 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.22 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.20 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.18 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.16 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.14 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.12 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.10 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.8 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.6 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.4 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.2 cube-native-xorg-base:1.1; locks; strict; comment @# @; 1.2 date 2016.10.09.03.41.56; author ryoon; state Exp; branches; next 1.1; commitid io4No6768Wxf7qpz; 1.1 date 2008.08.31.06.36.49; author scottr; state Exp; branches; next ; desc @@ 1.2 log @Update to 10.0.7 The only following features are tested on NetBSD/amd64 7.99.39 without vmt(4) on VMware Workstation 12 Player 12.0.5 for Windows or ESXi 6.0u2. * Hostname and IP address report * Shutdown and reboot operations from host * Copy and paste of text string between host and guest * Guest clock sync The other features are not tested. For example, * Drag and drop between host and guest * VM HA, heartbeat * HGFS, shared folder Changelog: What's New VMware Tools is a suite of utilities that enhances the performance of the virtual machine's guest operating system and improves management of the virtual machine. Read about the new and enhanced features in this release below: Common versioning: Infrastructure changes to enable reporting of the true version of open-vm-tools. This feature is dependent on host support. Quiesced snapshots enhancements for Linux guests running IO workload: Robustness related enhancements in quiesced snapshot operation. The vmtoolsd service supports caching of log messages when guest IO has been quiesced. Enhancements in the vmbackup plugin use a separate thread to quiesce the guest OS to avoid timeout issues due to heavy I/O in the guest. Shared Folders: For Linux distributions with kernel version 4.0.0 and higher, there is a new FUSE based Shared Folders client which is used as a replacement for the kernel mode client. ESXi Serviceability: Default vmtoolsd logging is directed to a file instead of syslog. vmware-toolbox-cmd is enhanced for setting vmtoolsd logging levels. GuestInfo Enhancements: Plugin enhancements to report more than 64 IP addresses from the guest. These enhancements will be available only after upgrading the host because the guest IP addresses limit also exists on the host side. Internationalization open-vm-tools 10.0.0 supports the following languages: English French German Spanish Italian Japanese Korean Simplified Chinese Traditional Chinese Compatibility open-vm-tools 10.0.0 is compatible with all supported versions of VMware vSphere, VMware Workstation 12.0 and VMware Fusion 8.0. @ text @$NetBSD: patch-bu,v 1.1 2008/08/31 06:36:49 scottr Exp $ --- vmware-user-suid-wrapper/wrapper-netbsd.c.orig 2016-10-04 11:37:33.890972836 +0000 +++ vmware-user-suid-wrapper/wrapper-netbsd.c @@@@ -0,0 +1,136 @@@@ +/********************************************************* + * Copyright (C) 2007-2015 VMware, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation version 2.1 and no later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + *********************************************************/ + +/* + * wrapper.c -- + * + * Platform specific code for the VMware User Agent setuid wrapper. + */ + + +#include +#include +#include +#include +#include + +#include "vmware.h" +#include "wrapper.h" + + +/* + * Global functions + */ + + +#ifdef USES_LOCATIONS_DB +/* + *----------------------------------------------------------------------------- + * + * BuildExecPath -- + * + * Determine & return path of vmware-user for use by execve(2). + * + * Results: + * TRUE on success, FALSE otherwise + * + * Side effects: + * None. + * + *----------------------------------------------------------------------------- + */ + +Bool +BuildExecPath(char *execPath, // OUT: Buffer to store executable's path + size_t execPathSize) // IN : size of execPath buffer +{ + char tmpPath[MAXPATHLEN]; + int execLen; + + /* + * The locations database is the only path that's fixed, and it contains the + * paths to all the other paths selected during Tools configuration. The + * locations database file is only writable by root, so we can trust it. + */ + if (!QueryLocationsDB(LOCATIONS_PATH, QUERY_BINDIR, tmpPath, sizeof tmpPath)) { + Error("could not obtain BINDIR\n"); + return FALSE; + } + + if (strlcat(tmpPath, + "/vmware-user-wrapper", sizeof tmpPath) >= sizeof tmpPath) { + Error("could not construct program filename\n"); + return FALSE; + } + + /* + * From readlink(2), "The readlink() system call does not append a NUL + * character to buf." (NB: This breaks if user ever replaces the symlink + * with the target.) + */ + if ((execLen = readlink(tmpPath, execPath, execPathSize - 1)) == -1) { + Error("could not resolve symlink: %s\n", strerror(errno)); + return FALSE; + } + + execPath[execLen] = '\0'; + + /* + * Now make sure that the target is actually part of our "trusted" + * directory. (Check that execPath has LIBDIR as a prefix and does + * not contain "..".) + */ + if (!QueryLocationsDB(LOCATIONS_PATH, QUERY_LIBDIR, tmpPath, + sizeof tmpPath)) { + Error("could not obtain LIBDIR\n"); + return FALSE; + } + + if ((strncmp(execPath, tmpPath, strlen(tmpPath)) != 0) || + (strstr(execPath, "..") != NULL)) { + Error("vmware-user path untrusted\n"); + return FALSE; + } + + return TRUE; +} +#endif // ifdef USES_LOCATIONS_DB + + +/* + *---------------------------------------------------------------------------- + * + * CompatExec -- + * + * Simple platform-dependent execve() wrapper. + * + * Results: + * False. + * + * Side effects: + * This function may not return. + * + *---------------------------------------------------------------------------- + */ + +Bool +CompatExec(const char *path, char * const argv[], char * const envp[]) +{ + execve(path, argv, envp); + return FALSE; +} @ 1.1 log @Update to version 2008.08.08-109361. This release provides the following enhancements: - Simple command-line tools to interface with VMware host - Guest OS scripts that can be triggered by the VMware host - Startup script When compiled with X11 support (the default), this release also provides: - GTK+-based GUI to configure time sync, device connections, and scripts - Helper application to interface with the xf86-video-vmware driver, enabling dynamic screen resize @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- vmware-user-suid-wrapper/wrapper-netbsd.c.orig 2008-08-19 17:54:40.000000000 -0500 d5 1 a5 1 @@@@ -0,0 +1,140 @@@@ d7 1 a7 1 + * Copyright (C) 2007 VMware, Inc. All rights reserved. a30 4 +#include +#include +// #include // for nmount(2) + @