[lxc-devel] [PATCH] .gitignore: add sparclinux make output

2016-01-13 Thread Tycho Andersen
Signed-off-by: Tycho Andersen --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5e4912c..58e5dea 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ templates/lxc-opensuse templates/lxc-oracle

[lxc-devel] [PATCH] c/r: remember to chown the cgroup path (correctly)

2016-01-13 Thread Tycho Andersen
1. remember to chown the cgroup path when migrating a container 2. when restoring the cgroup path, try to compute the euid for root vs. using geteuid(); geteuid works for start, but it doesn't work for migration since we're still real root at that point. Signed-off-by: Tycho Andersen

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

2016-01-13 Thread KATOH Yasufumi
Signed-off-by: KATOH Yasufumi --- doc/ja/lxc.container.conf.sgml.in | 15 +++ doc/lxc.container.conf.sgml.in| 12 2 files changed, 27 insertions(+) diff --git a/doc/ja/lxc.container.conf.sgml.in b/doc/ja/lxc.container.conf.sgml.in index

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

2016-01-13 Thread KATOH Yasufumi
* remove unavailable options (-w, -r) * remove overlapped option (-P) * classify options according to bdev type Signed-off-by: KATOH Yasufumi --- src/lxc/lxc_create.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-)

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

2016-01-13 Thread KATOH Yasufumi
Update for commit 1bc07a5 * Add long options if not be written * Remove optional tags in OPTIONS section Signed-off-by: KATOH Yasufumi --- doc/ja/lxc-console.sgml.in | 4 ++-- doc/ja/lxc-create.sgml.in | 6 +++--- doc/ja/lxc-device.sgml.in |

[lxc-devel] [PATCH] cgmanager: don't make tasks + cgroup.procs +x

2016-01-13 Thread Tycho Andersen
No reason for these to be +x, and it looks weird. Signed-off-by: Tycho Andersen --- src/lxc/cgmanager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/cgmanager.c b/src/lxc/cgmanager.c index 5596285..357182a 100644 ---

Re: [lxc-devel] [PATCH v2] safe_mount: Handle mounting proc and refactor

2016-01-13 Thread Bogdan Purcareata
On 11.01.2016 20:59, Serge Hallyn wrote: > Quoting Bogdan Purcareata (bogdan.purcare...@nxp.com): >> The safe_mount primitive will mount the fs in the new container >> environment by using file descriptors referred in /proc/self/fd. >> However, when the mounted filesystem is proc itself, it will

[lxc-devel] [PATCH] lxc-ls: try to protect stack in recursive function

2016-01-13 Thread Christian Brauner
As ls_get() is non-tail recursive we face the inherent danger of blowing up the stack at some level of nesting. To have at least some security we define MAX_NESTLVL to be 5. That should be sufficient for most users. The argument lvl to ls_get() can be used to keep track of the level of nesting we

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

2016-01-13 Thread Serge Hallyn
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. Finally when calling lxc-user-nic, use execlp insteac of execvp to preserve

[lxc-devel] [lxc/lxc] f2d63d: Add openSUSE Leap release in opensuse template

2016-01-13 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: f2d63d7ac44cf8ebabf11cdc1a8b9ba39506167a https://github.com/lxc/lxc/commit/f2d63d7ac44cf8ebabf11cdc1a8b9ba39506167a Author: Terzeus S. Dominguez Date: 2016-01-10 (Sun, 10 Jan 2016) Changed

Re: [lxc-devel] [PATCH] .gitignore: add sparclinux make output

2016-01-13 Thread Serge Hallyn
Quoting Wim Coekaerts (wim.coekae...@oracle.com): > On 1/13/16 1:50 PM, Serge Hallyn wrote: > >Quoting Tycho Andersen (tycho.ander...@canonical.com): > >>Signed-off-by: Tycho Andersen > >Acked-by: Serge E. Hallyn > > > >>--- > >> .gitignore

Re: [lxc-devel] [PATCH] .gitignore: add sparclinux make output

2016-01-13 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 5e4912c..58e5dea

[lxc-devel] [lxc/lxc] bdaa08: cgmanager: drop possibly expected failures to a WA...

2016-01-13 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: bdaa0884c47abff2de5496b469a07821dedef581 https://github.com/lxc/lxc/commit/bdaa0884c47abff2de5496b469a07821dedef581 Author: Serge Hallyn Date: 2016-01-13 (Wed, 13 Jan 2016) Changed

Re: [lxc-devel] [PATCH] cgmanager: don't make tasks + cgroup.procs +x

2016-01-13 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > No reason for these to be +x, and it looks weird. > > Signed-off-by: Tycho Andersen But it makes them a pretty green color in my terminal. Acked-by: Serge E. Hallyn > --- >

Re: [lxc-devel] [PATCH] lxc-ls: try to protect stack in recursive function

2016-01-13 Thread Serge Hallyn
Quoting Christian Brauner (christian.brau...@mailbox.org): > As ls_get() is non-tail recursive we face the inherent danger of blowing up > the > stack at some level of nesting. To have at least some security we define > MAX_NESTLVL to be 5. That should be sufficient for most users. The argument

Re: [lxc-devel] [PATCH] .gitignore: add sparclinux make output

2016-01-13 Thread Wim Coekaerts
On 1/13/16 1:50 PM, Serge Hallyn wrote: Quoting Tycho Andersen (tycho.ander...@canonical.com): Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore

Re: [lxc-devel] [PATCH v2] safe_mount: Handle mounting proc and refactor

2016-01-13 Thread Serge Hallyn
Quoting Bogdan Purcareata (bogdan.purcare...@nxp.com): > On 11.01.2016 20:59, Serge Hallyn wrote: > > Quoting Bogdan Purcareata (bogdan.purcare...@nxp.com): > >> The safe_mount primitive will mount the fs in the new container > >> environment by using file descriptors referred in /proc/self/fd. >

[lxc-devel] [lxc/lxc] 5f4aaf: cgmanager - fix (again) previous commit

2016-01-13 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 5f4aafaccbd7b94b8c8afe4be8b9dd132fdc9c34 https://github.com/lxc/lxc/commit/5f4aafaccbd7b94b8c8afe4be8b9dd132fdc9c34 Author: Serge Hallyn Date: 2016-01-13 (Wed, 13 Jan 2016) Changed

[lxc-devel] [lxc/lxc] 15fd20: reimplement lxc-ls in C

2016-01-13 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 15fd209a88dc1a93492c5b412eb615485a8cf78e https://github.com/lxc/lxc/commit/15fd209a88dc1a93492c5b412eb615485a8cf78e Author: Christian Brauner Date: 2016-01-13 (Wed, 13 Jan 2016)

[lxc-devel] [lxc/lxc] 3e376e: cgmanager: drop the cgm_supports_multiple_controll...

2016-01-13 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 3e376eee6a71b3357c4614c42577c4d9fc87a33a https://github.com/lxc/lxc/commit/3e376eee6a71b3357c4614c42577c4d9fc87a33a Author: Serge Hallyn Date: 2016-01-13 (Wed, 13 Jan 2016) Changed