[lxc-devel] [PATCH 0/5] Bugfixes + minor features w.r.t. attach

2013-08-18 Thread Christian Seiler
Hi, This series can also be found under It consists of 3 parts: * Patch 1 fixes some things that were broken when I tried to work on the attach functionality further. (lxc-start didn't work, lxc-attach didn't work due to some cgroup

[lxc-devel] [PATCH 2/5] attach: Fix minor memory leak in environment variable handling

2013-08-18 Thread Christian Seiler
Signed-off-by: Christian Seiler --- src/lxc/attach.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 950fe9a..2e94b70 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -292,7 +292,13 @@ int lxc_attach_set_environment(enum lxc_attach_en

[lxc-devel] [PATCH 1/5] cgroup: minor bugfixes so start and attach work again

2013-08-18 Thread Christian Seiler
This fixes some minor bugs in the cgroup logic that made start and attach fail (at least when all cgroup controllers were mounted together). Signed-off-by: Christian Seiler --- src/lxc/cgroup.c | 31 --- src/lxc/commands.c |3 ++- 2 files changed, 30 insertion

[lxc-devel] [PATCH 5/5] python/attach: Add function that returns personality for architecture

2013-08-18 Thread Christian Seiler
Adds the arch_to_personality function that looks up an architecture and returns the corresponding personality. This may be used in conjunction with the attach/attach_wait keyword argument. Signed-off-by: Christian Seiler --- src/python-lxc/lxc.c | 32

[lxc-devel] [PATCH 3/5] python/attach: Fix minor memory leaks

2013-08-18 Thread Christian Seiler
Signed-off-by: Christian Seiler --- src/python-lxc/lxc.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index ddf3fa0..f4de169 100644 --- a/src/python-lxc/lxc.c +++ b/src/python-lxc/lxc.c @@ -759,8 +759,10 @@ sta

[lxc-devel] [PATCH 4/5] python/attach: export CLONE_NEW* constants to Python

2013-08-18 Thread Christian Seiler
Signed-off-by: Christian Seiler --- src/python-lxc/lxc.c | 36 src/python-lxc/lxc/__init__.py |6 ++ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/src/python-lxc/lxc.c b/src/python-lxc/lxc.c index f4de169..b2abf38 100644 -

Re: [lxc-devel] lxc-start: Failed to find current cgroup

2013-08-18 Thread Christian Seiler
Hi there, FYI: I had the same problem with current staging and the first patch I sent in my latest series fixes this: http://thread.gmane.org/gmane.linux.kernel.containers.lxc.devel/3977 -- Christian -- Get 100% visibil