Re: [lxc-devel] [PATCH 1/1] idmap_add_id: fix broken behavior

2014-01-24 Thread Stéphane Graber
On Thu, Jan 23, 2014 at 10:23:24PM -0600, Serge Hallyn wrote: > The geteuid() addition is being made the first element of the lxc_list, > but the first element is just a head whose entry is ignored. Therefore > userns_exec_1() was starting its tasks without the caller's uid mapped > into the names

[lxc-devel] [PATCH 1/1] idmap_add_id: fix broken behavior

2014-01-23 Thread Serge Hallyn
The geteuid() addition is being made the first element of the lxc_list, but the first element is just a head whose entry is ignored. Therefore userns_exec_1() was starting its tasks without the caller's uid mapped into the namespace. Signed-off-by: Serge Hallyn --- src/lxc/conf.c | 52 +