pkg/libcontainer/cgroups
Alexander Larsson cfde39c592 libcontainer/cgroup: Use raw access to set up and join the devices cgroup
The systemd support for the devices cgroup lacks two required features:
 * Support for wildcards to allow mknod on any device
 * Support for wildcards to allow /dev/pts support

The second is available in more recent systemd as "char-pts", but not in e.g. v208 which is in wide use.

Additionally, the current approach of letting systemd set up the devices cgroup and then adding
some devices to it doesn't work, because some times systemd (at least v208) re-initializes
the devices cgroup, overwriting our custom devices. See https://github.com/dotcloud/docker/issues/6009
for the details.

When wildcarded mknod support is available in systemd we should implement a pure systemd version,
but we need to keep the old one around for backwards compat.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-06-03 11:34:14 +02:00
..
fs Merge pull request #6153 from vishh/stats1 2014-06-02 17:53:17 -07:00
systemd libcontainer/cgroup: Use raw access to set up and join the devices cgroup 2014-06-03 11:34:14 +02:00
cgroups.go Ensure all dev nodes are copied for privileged 2014-05-30 18:39:11 -07:00
cgroups_test.go Move cgroups package into libcontainer 2014-05-14 15:21:44 -07:00
stats.go Adding percpu usage to cgroup stats reported by libcontainer. 2014-06-02 06:56:15 +00:00
utils.go Move get pid into cgroup implementation 2014-05-21 21:14:07 +00:00