The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1078

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Christian Brauner <cbrau...@suse.de>
From ceecc92c422a19bf580ed3c6c854e832000d4b47 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@mailbox.org>
Date: Mon, 11 Jul 2016 22:48:48 +0200
Subject: [PATCH] add missing cgroup namespace to ns_info struct

Signed-off-by: Christian Brauner <cbrau...@suse.de>
---
 src/lxc/start.c | 3 ++-
 src/lxc/start.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lxc/start.c b/src/lxc/start.c
index 5437206..b3f75b8 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -82,7 +82,8 @@ const struct ns_info ns_info[LXC_NS_MAX] = {
        [LXC_NS_UTS] = {"uts", CLONE_NEWUTS},
        [LXC_NS_IPC] = {"ipc", CLONE_NEWIPC},
        [LXC_NS_USER] = {"user", CLONE_NEWUSER},
-       [LXC_NS_NET] = {"net", CLONE_NEWNET}
+       [LXC_NS_NET] = {"net", CLONE_NEWNET},
+       [LXC_NS_CGROUP] = {"cgroup", CLONE_NEWCGROUP}
 };
 
 extern void mod_all_rdeps(struct lxc_container *c, bool inc);
diff --git a/src/lxc/start.h b/src/lxc/start.h
index 86b19a2..fe47ab9 100644
--- a/src/lxc/start.h
+++ b/src/lxc/start.h
@@ -49,6 +49,7 @@ enum {
        LXC_NS_IPC,
        LXC_NS_USER,
        LXC_NS_NET,
+       LXC_NS_CGROUP,
        LXC_NS_MAX
 };
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to