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

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: Stéphane Graber <stgra...@ubuntu.com>
From d2b913da89010b951be37340a38c3b1265800ec1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Wed, 3 Oct 2018 12:25:21 -0400
Subject: [PATCH] apparmor: Allow cgroupv2 in cgns
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/apparmor.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/apparmor.go b/lxd/apparmor.go
index f981495eee..ae2e502abb 100644
--- a/lxd/apparmor.go
+++ b/lxd/apparmor.go
@@ -338,6 +338,7 @@ func getAAProfileContent(c container) string {
        if shared.PathExists("/proc/self/ns/cgroup") {
                profile += "\n  ### Feature: cgroup namespace\n"
                profile += "  mount fstype=cgroup -> /sys/fs/cgroup/**,\n"
+               profile += "  mount fstype=cgroup2 -> /sys/fs/cgroup/**,\n"
        }
 
        state := c.DaemonState()
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to