[lxc-devel] [PATCH] python3: Add snapshot_* to the binding

2013-11-28 Thread Stéphane Graber
Signed-off-by: Stéphane Graber --- src/python-lxc/lxc.c | 127 +++ 1 file changed, 127 insertions(+) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 050f6ae..f850a3d 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-lxc/lxc.c @@ -11

[lxc-devel] [PATCH] python3: Allow setting daemonize and close_fds

2013-11-28 Thread Stéphane Graber
This extends the list of arguments of start() allowing the user to request the container be started in the foreground and have control on whether fds will be closed or not (daemonize=True implies that too). One problem at the moment however is that while we have functions to set close_fds and daem

[lxc-devel] [PATCH] python3: Use FSConverter for all paths

2013-11-28 Thread Stéphane Graber
Signed-off-by: Stéphane Graber --- src/python-lxc/lxc.c | 69 +--- 1 file changed, 60 insertions(+), 9 deletions(-) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index 5a20ff4..b4f1da3 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-l

[lxc-devel] [PATCH 1/1] chown_mapped_root: fix assumption that calling uid == guid

2013-11-28 Thread Serge Hallyn
Because if they are not, then we'll fail trying to map that gid into the container. The function doesn't change any gids, but lxc-usernsexec always does setgid(0), so just map getgid() to 0 in the container. Signed-off-by: Serge Hallyn --- src/lxc/conf.c | 21 ++--- 1 file chang

Re: [lxc-devel] [PATCH 1/1] chown_mapped_root: fix assumption that calling uid == guid

2013-11-28 Thread Stéphane Graber
On Thu, Nov 28, 2013 at 10:53:13PM -0600, Serge Hallyn wrote: > Because if they are not, then we'll fail trying to map that > gid into the container. > > The function doesn't change any gids, but lxc-usernsexec always does > setgid(0), so just map getgid() to 0 in the container. > > Signed-off-by

[lxc-devel] [lxc/lxc] 98e5ba: chown_mapped_root: fix assumption that calling uid...

2013-11-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 98e5ba5156d47436b9445a106f2014f71191c3df https://github.com/lxc/lxc/commit/98e5ba5156d47436b9445a106f2014f71191c3df Author: Serge Hallyn Date: 2013-11-28 (Thu, 28 Nov 2013) Changed paths: M src/lxc/conf.c