]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfsng: rework cgroup2 attach 3205/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 4 Dec 2019 00:39:20 +0000 (01:39 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 4 Dec 2019 01:56:25 +0000 (02:56 +0100)
commitbad788b08f1aa440b0686540b922522047b4f41e
tree472dbcbbcf6bdc1ae363e2a60fd048efda307af3
parent6900ebfa2d983c924116c74d9012e0439c2f155c
cgfsng: rework cgroup2 attach

On pure unified systemd we can use a single file descriptor to interact with
the cgroup filesystem. Add a method to retrieve it and as a start use it in our
unified attach codepath.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c
src/lxc/cgroups/cgroup.c
src/lxc/cgroups/cgroup.h
src/lxc/commands.c
src/lxc/commands.h
src/lxc/file_utils.c
src/lxc/file_utils.h