]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc: cgfs: handle lxcfs 831/head
authorUbuntu <ubuntu@localhost.localdomain>
Sat, 20 Feb 2016 02:25:55 +0000 (02:25 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 20 Feb 2016 02:45:40 +0000 (18:45 -0800)
commit836514a877bac367d443b17f4c43afbf472f7222
treeaca5cf45de686226bbfd049a2cf0fe7ee86f12c5
parentdddf7c5b7e0fbf35006bbf3a524c0c15ed687deb
lxc: cgfs: handle lxcfs

When containers have lxcfs mounted instead of cgroupfs, we have to
process /proc/self/mountinfo a bit differently.  In particular, we
should look for fuse.lxcfs fstype, we need to look elsewhere for the
list of comounted controllers, and the mount_prefix is not a cgroup path
which was bind mounted, so we should ignore it, and named subsystems
show up without the 'name=' prefix.

With this patchset I can start containers inside a privileged lxd
container with lxcfs mounted (i.e. without cgroup namespaces).

Closes #830

Signed-off-by: Ubuntu <ubuntu@localhost.localdomain>
src/lxc/cgfs.c