Subprocesses of StartProgramInGuest fail when creating temporary files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-vm-tools (Debian) |
Fix Released
|
Unknown
|
|||
open-vm-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using open-vm-
Summary:
* When running subprocesss through open-vm-tools 2:10.2.
* Subprocesses run correctly when executed directly from the shell
* Subprocesses execute correctly from open-vm-tools open-vm-
Steps to reproduce:
1. Install open-vm-
2. Using VMOMI API, start a child process that relies on temporary files (eg. `apt-get update`)
3. Note the error code on the child process (eg. 100)
4. Run process directly from guest shell (eg. `apt-get update`)
5. Note the successful return code on the child process (1)
Logs from vmtoolsd on guest:
Mar 23 19:32:32 kcp vmtoolsd[660]: Hit:1 https:/
Mar 23 19:32:32 kcp vmtoolsd[660]: Couldn't create tempfiles for splitting up /var/lib/
Mar 23 19:32:32 kcp vmtoolsd[660]: Could not execute 'apt-key' to verify signature (is gnupg installed?)
-------
Psuedo code using pyVMOMI API to start a child process:
#!/usr/bin/python
import re
import time
from pyVim import connect
from pyVmomi import vim, vmodl
service_instance = connect.
content = service_
vm = content.
creds = vim.vm.
username=
)
pm = content.
ps = vim.vm.
programPath=
arguments=
)
res = pm.StartProgram
pid_exitcode = pm.ListProcesse
while re.match('[^0-9]+', str(pid_exitcode)):
time.sleep(5)
pid_exitcode = pm.ListProcesse
if pid_exitcode == 0:
break
# Look for non-zero code to fail
elif re.match('[1-9]+', str(pid_exitcode)):
CVE References
Changed in open-vm-tools (Ubuntu Artful): | |
status: | New → Triaged |
Changed in open-vm-tools (Debian): | |
status: | Unknown → New |
Changed in open-vm-tools (Debian): | |
status: | New → Fix Released |
Tim, what exactly do you mean with 'Subprocesses execute correctly from open-vm-tools open-vm- tools-10. 2.0-7253323, when compiled from source'? Is this a rebuild of the package, or is this a build of just the open-vmware-tools source without Debian package scripts?