I have joined the open-vm-tools-devel list in the hopes of providing some improvements to the vmware-user-suid-wrapper.

I am using open-vm-tools under Ubuntu 8.10. There were some problems but most were corrected with the fixes rolled out as per Ubuntu LP 302226: https://bugs.launchpad.net/bugs/302226

There remains one problem: Now that vmware-user is properly starting, drag and drop does not work. This is because vmblock is not being properly started.

I apologize in advance for being a first-time poster but disagreeing with an answer given previously on the list. I think Dmitry Torokhov may have given an incorrect answer to Dominique Leuenberger on 2/11/2009. I am looking at the open-vm-tools-2009.03.18-15458 download and it appears that the code in vmware-user-suid-wrapper to load/unload the vmblock kernel module is missing.

I proposed a patch to the Ubuntu community on 2/25/2009 in LP 332323
https://bugs.launchpad.net/bugs/332323
but I think I was approaching the wrong folks.

Attached is my patch which:

adds to wrapper-linux.c:

    UnmountVMBlock to call unmount(mountPoint)
    UnloadModule to call modprobe -r
    LoadVMBlock to call modprobe
    MountVMBlock to call mount (mountPoint)

modifies wrapper.h to add linux to the list of platforms that define TOGGLE_VMBLOCK

modifies the platform independent code in main.c to add a platform specific "if !defined(linux)" around the code that creates the vmblock directory in /proc/fs. (Under Linux, that mkdir is unnecessary because the creation of the directory is done by the vmblock kernel module itself.)

I'll note in passing that Ubuntu installs the script in the wrong place without the setuid bit set, but that is not your problem.

Could someone look at this patch and tell me how I might refine it so that vmblock load-in could actually become a part of the vmware-user- suid-wrapper as its man page says it should be.

-Bill Cattey
Linux Platform Coordinator
Massachusetts Institute of Technology
Cambridge MA

Attachment: user-suid-patch.diff
Description: Binary data

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to