]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgfs.c
cgroup: only touch hierarchies that are bound to subsystems
authorDavid Ward <david.ward@ll.mit.edu>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
commit1d39a0658370ac104825e796bf90bb96ae0b7027
tree3d2c3a4c0b9d3844d0a048f78897d1aca5434bd6
parent460a1cf0a9465043652092b11844f026cdad1342
cgroup: only touch hierarchies that are bound to subsystems

Obtain a list of subsystems from /proc/cgroups, and ignore hierarchies
that are not bound to any of them (especially the 'systemd' hierarchy:
http://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups ).

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c