[lxc-devel] [lxc/master] add missing cgroup namespace to ns_info struct

brauner on Github lxc-bot at linuxcontainers.org
Mon Jul 11 20:58:18 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 352 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160711/595e28df/attachment.bin>
-------------- next part --------------
From ceecc92c422a19bf580ed3c6c854e832000d4b47 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at 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 <cbrauner at 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
 };
 


More information about the lxc-devel mailing list