Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147945 - Bridged networking in VMware (Workstation) doesn't work out of the box (patch included)
Summary: Bridged networking in VMware (Workstation) doesn't work out of the box (patch...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-17 08:38 UTC by Michiel de Bruijne
Modified: 2006-09-28 01:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to change /dev/vmnet* to 660 (with root:vmware) (fix_permissions_vmnet.patch,398 bytes, patch)
2006-09-17 08:40 UTC, Michiel de Bruijne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel de Bruijne 2006-09-17 08:38:48 UTC
In /etc/vmware/init.d/vmware the /dev/vmnet* devices are set to owner root:vmware, however the /dev/vmnet* devices are set to 600. The users in the vmware group can't access the virtual network devices. The result is that at least bridged networking won't work (I have not tested other variants). With this patch users in the vmware group can use bridged networking.
Comment 1 Michiel de Bruijne 2006-09-17 08:40:48 UTC
Created attachment 97252 [details, diff]
Patch to change /dev/vmnet* to 660 (with root:vmware)
Comment 2 Mike Auty (RETIRED) gentoo-dev 2006-09-17 16:00:56 UTC
This patch could potentially be a security risk, couldn't it?  Allowing users of the vmware group to create/write raw packets onto a bridged interface doesn't sound like a good idea...

I'd suggest removing the chmod from the init script, and add something in the vmware-modules ebuilds to write the same (600) permissions on the device into the udev rules file (60-vmware.rules).  If the users would like to open themselves up to a potential security risk, they can then do it in a single place that's much easier to edit than the init script.

Does that sound ok?  Michiel?  Chris?
Comment 3 Michiel de Bruijne 2006-09-17 18:23:34 UTC
I would definitely like it if it's moved from the init-script to the udev rule. I think that most users like/use bridged networking (it's the default when creating a virtual machine), but I do agree it's less secure. With this setting the ethernet device is set into promiscuous mode. The question is do you want VMware to be fully functional or more secure out of the box. Either way extra information in pkg_postinst() would be nice, so users know they need to change the udev rule.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-18 06:33:48 UTC
I have 0 problems with bridged networking without any changes such as this.  Anyway, we're currently doing 660 on vmmon* (vmware-mod_sec_install) so this isn't any more insecure than that.  I wouldn't mind seeing us add the vmnet code to the udev rules, too.
Comment 5 Mike Auty (RETIRED) gentoo-dev 2006-09-18 16:32:09 UTC
I've also had no difficulty using the bridged network device, unless you're trying to enter promiscuous mode from inside the guest operating system (in which case vmware ought to pop up an error box).  I think probably I will move the permissions to the udev rules file, and add a patch to remove them from the init script.  I will leave them as the vmware defaults of 600 (since, given the bridged networking should work fine at that level, I don't see any reason to elevate it) and then the user can override it if necessary.  This won't happen until at least next week however.  Give me a prod if it still hasn't happened in two weeks time...  5;)
Comment 6 Mike Auty (RETIRED) gentoo-dev 2006-09-28 01:17:14 UTC
Doh!  I was indeed being a bit slow in getting an update out, but Chris has now very kindly done the work for me and pushed out an update (Thanks Chris!!!!).  I'm going to mark this as fixed now.  The modules *haven't* been bumped, since this isn't a major issue (as mentioned there haven't been any other people reporting difficulty with bridged mode previously), so you'll have to recompile them.  If there are still issues after that, please reopen the bug and we can look into it further...  5:)