[lxc-devel] [lxc/master] Fix lxc.cgroup2.<controller> on cgroup2-only systems

TheSeven on Github lxc-bot at linuxcontainers.org
Wed Mar 6 23:08:58 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 542 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190306/71ddcc1f/attachment.bin>
-------------- next part --------------
From 52b0c98b159a320ac7a48536b07ba91ce7174723 Mon Sep 17 00:00:00 2001
From: Michael Sparmann <750643+TheSeven at users.noreply.github.com>
Date: Thu, 7 Mar 2019 00:06:11 +0100
Subject: [PATCH] Fix lxc.cgroup2.<controller> on cgroup2-only systems

---
 src/lxc/cgroups/cgfsng.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index c8be81b932..e40b8079a1 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -2684,6 +2684,7 @@ static int cg_unified_init(struct cgroup_ops *ops, bool relative,
 		cg_unified_delegate(&new->cgroup2_chown);
 
 	ops->cgroup_layout = CGROUP_LAYOUT_UNIFIED;
+	ops->unified = new;
 	return CGROUP2_SUPER_MAGIC;
 }
 


More information about the lxc-devel mailing list