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

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 <christian.brau...@ubuntu.com>
From 7bd05339e17fe304bc984aceff539c3f257a009e Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Thu, 8 Feb 2018 23:47:10 +0100
Subject: [PATCH] start: check for cgroup namespace support

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 src/lxc/start.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lxc/start.c b/src/lxc/start.c
index 1cbfcae35..3d18444ba 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -1355,6 +1355,9 @@ int resolve_clone_flags(struct lxc_handler *handler)
                        if (i == LXC_NS_NET && 
lxc_requests_empty_network(handler))
                                continue;
 
+                       if (i == LXC_NS_CGROUP && !cgns_supported())
+                               continue;
+
                        handler->clone_flags |= ns_info[i].clone_flag;
                }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to