Re: [lxc-devel] [PATCH] doc: Add valueless lxc.cap.drop behaviour to Japanese man page

2016-01-28 Thread Stéphane Graber
On Tue, Jan 05, 2016 at 04:31:46PM +0900, KATOH Yasufumi wrote: > Update for commit 7eff30f > > Signed-off-by: KATOH Yasufumi Acked-by: Stéphane Graber > --- > doc/ja/lxc.container.conf.sgml.in | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/doc/ja/lxc.container.conf.sgml.in > b

Re: [lxc-devel] [PATCH] doc: Add LXC_SRC_NAME to Korean lxc.container.conf(5)

2016-01-28 Thread Stéphane Graber
On Tue, Jan 05, 2016 at 03:07:09AM +, Sungbae Yoo wrote: > Update for commit 0794541 > > Signed-off-by: Sungbae Yoo Acked-by: Stéphane Graber > > diff --git a/doc/ko/lxc.container.conf.sgml.in > b/doc/ko/lxc.container.conf.sgml.in > index 347ba65..2812bf4 100644 > --- a/doc/ko/lxc.contai

Re: [lxc-devel] [PATCH 1/2] Document clear behaviour of list options

2016-01-28 Thread Stéphane Graber
On Mon, Jan 04, 2016 at 10:57:38PM +0100, Marko Hauptvogel wrote: > From: Marko Hauptvogel > > More general for all list options. > > Seems to currently affect: > lxc.network (clear all NICs) > lxc.network.* (clear current NIC) > lxc.cap.drop > lxc.cap.keep > lxc.cgroup > lxc.mount.entry > lxc.m

Re: [lxc-devel] [PATCH 2/2] Document network clear option

2016-01-28 Thread Stéphane Graber
On Mon, Jan 04, 2016 at 10:58:41PM +0100, Marko Hauptvogel wrote: > From: Marko Hauptvogel > > Should be mentioned separately because it will reset a big group of options. > > Signed-off-by: Marko Hauptvogel Acked-by: Stéphane Graber > --- > doc/lxc.container.conf.sgml.in | 10 ++ >

Re: [lxc-devel] [PATCH for stable-1.0 1/3] doc: Improve man pages

2016-01-28 Thread Stéphane Graber
On Wed, Jan 13, 2016 at 07:17:07PM +0900, KATOH Yasufumi wrote: > Update for commit 1bc07a5 > > * Add long options if not be written > * Remove optional tags in OPTIONS section > > Signed-off-by: KATOH Yasufumi Acked-by: Stéphane Graber > --- > doc/ja/lxc-console.sgml.in | 4 ++-- >

Re: [lxc-devel] [PATCH for stable-1.0 2/3] doc: Add LXC_SRC_NAME to lxc.container.conf(5)

2016-01-28 Thread Stéphane Graber
On Wed, Jan 13, 2016 at 07:17:08PM +0900, KATOH Yasufumi wrote: > Signed-off-by: KATOH Yasufumi Acked-by: Stéphane Graber > --- > doc/ja/lxc.container.conf.sgml.in | 15 +++ > doc/lxc.container.conf.sgml.in| 12 > 2 files changed, 27 insertions(+) > > diff --git a

Re: [lxc-devel] [PATCH for stable-1.0 3/3] Improve the help of lxc-create

2016-01-28 Thread Stéphane Graber
On Wed, Jan 13, 2016 at 07:17:09PM +0900, KATOH Yasufumi wrote: > * remove unavailable options (-w, -r) > * remove overlapped option (-P) > * classify options according to bdev type > > Signed-off-by: KATOH Yasufumi Acked-by: Stéphane Graber > --- > src/lxc/lxc_create.c | 44 +

Re: [lxc-devel] [PATCH] lxc-ls: Restore old [filter] behaviour

2016-01-28 Thread Stéphane Graber
On Wed, Jan 20, 2016 at 01:54:45AM +0100, Christian Brauner wrote: > In the Python implementation users could pass a regex without a parameter flag > as additional argument on the command line. The C implementation gained the > flag -r/--regex for this. To not irritate users we restore the old beha

Re: [lxc-devel] [PATCH] lxc-ls: tweak algorithm for ls_has_all_grps()

2016-01-28 Thread Stéphane Graber
On Wed, Jan 20, 2016 at 02:08:31PM +0100, Christian Brauner wrote: > - With the -g/--groups argument the user can give a comma-separated list of > groups MUST a container must have in order to be displayed. We receive > this list as a single string. ls_has_all_grps() is called to check if a >

[lxc-devel] [PATCH 0/3 - Previously Acked-by Serge (cc-ing him nonetheless]

2016-01-28 Thread Christian Brauner
Christian Brauner (3): lxc-ls: check for ENOMEM and tweaking Restore old behaviour [filter] behaviour lxc-ls: tweak algorithm for ls_has_all_grps() src/lxc/arguments.h | 5 +- src/lxc/lxc_ls.c| 180 +--- 2 files changed, 115 insertions(+

[lxc-devel] [PATCH 1/3] lxc-ls: check for ENOMEM and tweaking

2016-01-28 Thread Christian Brauner
- If lxc_container_new() fails we check for ENOMEM and if so goto out. If ENOMEM is not set we will simply continue. The same goes for the call to regcomp() but instead of checking for ENOMEM we need to check for REG_ESPACE. - Tweaking: Since lxc-ls might have to gather a lot of containers and

Re: [lxc-devel] [PATCH] lxc-ls: Restore old [filter] behaviour

2016-01-28 Thread Stéphane Graber
On Thu, Jan 28, 2016 at 12:06:00PM +0100, Stéphane Graber wrote: > On Wed, Jan 20, 2016 at 01:54:45AM +0100, Christian Brauner wrote: > > In the Python implementation users could pass a regex without a parameter > > flag > > as additional argument on the command line. The C implementation gained t

Re: [lxc-devel] [PATCH] fork off a task to delete ovs ports when done

2016-01-28 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > > diff --git a/src/lxc/network.c b/src/lxc/network.c > > index 3417928..49633ab 100644 > > --- a/src/lxc/network.c > > +++ b/src/lxc/network.c > > @@ -36,6 +36,7 @@ > > #include > > #include > > #include > > +#include > > Where is that includ

Re: [lxc-devel] [PATCH] fix lockpath removal in Python lxc-ls

2016-01-28 Thread Stéphane Graber
On Mon, Jan 11, 2016 at 02:43:42PM +0100, Christian Brauner wrote: > The lock path for lxc is not > > RUNTIME_PATH/lock/lxc > > but rather > > RUNTIME_PATH/lxc/lock > > Signed-off-by: Christian Brauner Acked-by: Stéphane Graber > --- > src/lxc/lxc-ls.in | 2 +- > 1 file changed

[lxc-devel] [lxc/lxc] 1cddc3: doc: Add LXC_SRC_NAME to Korean lxc.container.conf...

2016-01-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 1cddc3a41449fe5befef61917d439d06a60d7176 https://github.com/lxc/lxc/commit/1cddc3a41449fe5befef61917d439d06a60d7176 Author: Sungbae Yoo Date: 2016-01-28 (Thu, 28 Jan 2016) Changed paths: M doc/ko/lxc.cont

[lxc-devel] [PATCH 3/3] lxc-ls: tweak algorithm for ls_has_all_grps()

2016-01-28 Thread Christian Brauner
- With the -g/--groups argument the user can give a comma-separated list of groups MUST a container must have in order to be displayed. We receive this list as a single string. ls_has_all_grps() is called to check if a container has all the groups of MUST in its current list of groups HAS. I.

[lxc-devel] [PATCH 2/3] Restore old behaviour [filter] behaviour

2016-01-28 Thread Christian Brauner
In the Python implementation users could pass a regex without a parameter flag as additional argument on the command line. The C implementation gained the flag -r/--regex for this. To not irritate users we restore the old behaviour and additionally rename -r/--regex to --filter to allow eplicitly p

Re: [lxc-devel] [PATCH] fork off a task to delete ovs ports when done

2016-01-28 Thread Stéphane Graber
On Thu, Jan 14, 2016 at 07:48:57AM +, Serge Hallyn wrote: > The new task waits until the container is STOPPED, then asks > openvswitch to delete the port. > > This requires two new arguements to be sent to lxc-user-nic. > Since lxc-user-nic ships with lxc, this shouldn't be a problem. > > Fin

[lxc-devel] [lxc/lxc] 7f3c1c: lxc-ls: check for ENOMEM and tweaking

2016-01-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 7f3c1cf27f1fcd29b5e7f0b11e4aadfadd5f18ec https://github.com/lxc/lxc/commit/7f3c1cf27f1fcd29b5e7f0b11e4aadfadd5f18ec Author: Christian Brauner Date: 2016-01-28 (Thu, 28 Jan 2016) Changed paths: M src/lxc/l

Re: [lxc-devel] [PATCH 0/3 - Previously Acked-by Serge (cc-ing him nonetheless]

2016-01-28 Thread Stéphane Graber
Hi, Awesome, thanks. I reverted those that I had mangled in, then applied those three, should be all good now! On Thu, Jan 28, 2016 at 12:21:27PM +0100, Christian Brauner wrote: > Christian Brauner (3): > lxc-ls: check for ENOMEM and tweaking > Restore old behaviour [filter] behaviour > lx

Re: [lxc-devel] [PATCH] fork off a task to delete ovs ports when done

2016-01-28 Thread Stéphane Graber
On Thu, Jan 28, 2016 at 11:43:08AM +, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > diff --git a/src/lxc/network.c b/src/lxc/network.c > > > index 3417928..49633ab 100644 > > > --- a/src/lxc/network.c > > > +++ b/src/lxc/network.c > > > @@ -36,6 +36,7 @@ > > > #inc

[lxc-devel] [PATCH] lxc-copy: cleanup

2016-01-28 Thread Christian Brauner
Signed-off-by: Christian Brauner --- src/lxc/lxc_copy.c | 44 ++-- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/src/lxc/lxc_copy.c b/src/lxc/lxc_copy.c index 9812176..5919bf6 100644 --- a/src/lxc/lxc_copy.c +++ b/src/lxc/lxc_copy.c @@ -24

[lxc-devel] [lxc/lxc] 23c9c6: Fix Android build failure

2016-01-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 23c9c64d50d0424ca49d86896a5f043abd26940b https://github.com/lxc/lxc/commit/23c9c64d50d0424ca49d86896a5f043abd26940b Author: Stéphane Graber Date: 2016-01-28 (Thu, 28 Jan 2016) Changed paths: M src/lxc/bde

[lxc-devel] [lxc/lxc] c43cbc: fork off a task to delete ovs ports when done

2016-01-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: c43cbc040b83e4eef8d64c26a3636c48d6c5988b https://github.com/lxc/lxc/commit/c43cbc040b83e4eef8d64c26a3636c48d6c5988b Author: Serge Hallyn Date: 2016-01-28 (Thu, 28 Jan 2016) Changed paths: M src/lxc/conf.c

[lxc-devel] [PATCH] Remove wrong command line arg from help output

2016-01-28 Thread Christian Brauner
Signed-off-by: Christian Brauner --- Slipped my attention before unfortunately. --- src/lxc/lxc_ls.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c index b7034dc..aae2512 100644 --- a/src/lxc/lxc_ls.c +++ b/src/lxc/lxc_ls.c @@ -

[lxc-devel] migration of lxc container using CRIU

2016-01-28 Thread yuqing yu
Hi, I tried to migrate a lxc container across hosts following this tutorial by Tycho: http://tycho.ws/blog/2014/09/container-migration.html I wrote the script as a regular user and run the script with sudo, aka "sudo ./migrate u1 lena@192.168.99.101". However, I get the following errors: ./mig

[lxc-devel] [lxc/lxc] 6361a0: Fix Android build of lxc-ls

2016-01-28 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 6361a0f2dda1eb78d3a1bd8ac8db5749f1a7d08d https://github.com/lxc/lxc/commit/6361a0f2dda1eb78d3a1bd8ac8db5749f1a7d08d Author: Stéphane Graber Date: 2016-01-28 (Thu, 28 Jan 2016) Changed paths: M src/lxc/lxc

Re: [lxc-devel] [PATCH RFC] Introduce new security.nscapability xattr

2016-01-28 Thread Serge E. Hallyn
On Wed, Jan 27, 2016 at 04:36:02PM -0800, Andy Lutomirski wrote: > On Wed, Jan 27, 2016 at 9:22 AM, Jann Horn wrote: > > I think it sounds good from a security perspective. > > I'm a bit late to the game, but I have a question: why should this be > keyed to the *root* uid of the namespace in part