]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfs: do not automount if cgroup namespaces are supported 846/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 25 Feb 2016 01:00:35 +0000 (17:00 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 25 Feb 2016 01:47:23 +0000 (17:47 -0800)
commit4608594e1dce0efdf3412103d95d31763598ea0d
treede7ae97ff38fc9bfa5b4b1cc26e84d0bbeff5726
parent55290b833352eed66ff48dc3925955e14436ea05
cgfs: do not automount if cgroup namespaces are supported

In that case containers will be able to mount cgroup filesystems
for themselves as they do on a host.

This fixes inability to start systemd based containers on cgns-enabled
kernels with cgmanager not running.

I've tested debian jessie, busybox, ubuntu trusty and xenial, all of
which booted ok.  However if there are some setups which require
premounted cgroupfs (i.e. they don't mount if they detect being in
a container), this may cause trouble.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
doc/lxc.container.conf.sgml.in
src/lxc/cgfs.c