]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups: only allocate user namespace if we have to 4231/head
authorChristian Brauner <brauner@kernel.org>
Thu, 24 Nov 2022 11:44:15 +0000 (12:44 +0100)
committerChristian Brauner (Microsoft) <christian.brauner@ubuntu.com>
Thu, 24 Nov 2022 11:45:52 +0000 (12:45 +0100)
commit68020412c2000f568a17a43575a3568086ba0e98
tree373d02769571d6427cc32cd92448236a62a22595
parent27f69d45bf82abadcbfe7faf3c6ba9b98d901097
cgroups: only allocate user namespace if we have to

If the monitor runs as root we can assume it's able to remove the cgroups it
created when the container started.

Fixes: https://github.com/lxc/lxd/issues/11108
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c