Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113482 - net-misc/vde - group for vde set in init script
Summary: net-misc/vde - group for vde set in init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 09:52 UTC by Jean-François Richard
Modified: 2006-06-26 02:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-François Richard 2005-11-24 09:52:59 UTC
Hi,

The vde init script should change the permissions of /tmp/vde.ctl to something
like 0660 for user "root" and group "vde".  This way, once a user is in the vde
group, it would be possible to launch, for example, vdeqemu with no problem. 
Now I need to change the perms by hand so that users are able to use /tmp/vde.ctl.

This summarizes the modifications needed :

local my_vde_sock="/tmp/vde.ctl"
start-stop-daemon --start --quiet \
    --exec /usr/bin/vde_switch -- \
    -tap tap0 -daemon -sock "${my_vde_sock}"
chown root:vde "${my_vde_sock}"
chmod 0660 "${my_vde_sock}"

Also, on a side note, it seems I need to put 

        before net.tap0

instead of

        before net

so that the tap0 interface is set up after vde is started.  Else it starts net,
and net.eth0 is sufficient : tap0 is not set up.

Thanks!
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-26 02:11:55 UTC
I have added a new init script that has a conf.d file to allow group setting with 2.0.2, thanks!