Re: [lxc-devel] [PATCH RFC] add lxc-user-nic

2013-08-09 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > Probably should be under /run as we don't want this to persist across > reboots. Good thinking, and ... > > +/* TODO These should be set through configure.ac */ > > +#define CONF_FILE "/etc/lxc/lxc-usernet" > > +#define DB_FILE "/var/lib/lxc/nics"

Re: [lxc-devel] Schedule for Containers track at Plumbers 2013

2013-08-09 Thread Rob Landley
On 08/08/2013 03:25:34 AM, Stéphane Graber wrote: > The current schedule is visible at: > http://www.linuxplumbersconf.org/2013/ocw/events/LPC2013/tracks/153 > > The site is rather bad at showing how much time has been allocated to > each entry, so there you go: > - On the road to LXC 1.0: 30min

Re: [lxc-devel] [PATCH RFC] add lxc-user-nic

2013-08-09 Thread Stéphane Graber
On Fri, Aug 09, 2013 at 04:50:31PM -0500, Serge Hallyn wrote: > It is meant to be run setuid-root to allow unprivileged users to > tunnel veths from a host bridge to their containers. The program > looks at /etc/lxc/lxc-usernet which has entries of the form > > user type bridge number > >

[lxc-devel] [PATCH RFC] add lxc-user-nic

2013-08-09 Thread Serge Hallyn
It is meant to be run setuid-root to allow unprivileged users to tunnel veths from a host bridge to their containers. The program looks at /etc/lxc/lxc-usernet which has entries of the form user type bridge number The type currently must be veth. Whenver lxc-user-nic creates a nic for a

[lxc-devel] [PATCH] Replace mktemp() by a new mkifname()

2013-08-09 Thread Stéphane Graber
Using mktemp() leads to build time warnings and isn't actually appropriate for what we want to do as it's checking for the existence of a file and not a network interface. Replace those calls by an equivalent mkifname() function which uses the same template as mktemp but instead checks for existin