]> git.proxmox.com Git - mirror_lxc.git/commit
cgroups: add croup_set()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 16:40:30 +0000 (17:40 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Feb 2021 16:40:30 +0000 (17:40 +0100)
commit983b1db09dd09be107ef1c9fa0968c01acbc2c3f
tree8cb322114fd5cbc88c2e94437b0ac3d208773c73
parent3baf0fc8b9c2eb6226d395bd4771eae83e91b053
cgroups: add croup_set()

This is a unified hierarchy only method which doesn't need to initialize a full
cgroup driver. Instead, it relies on the command socket to retrieve a cgroup2
file descriptor to the container's cgroup.

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