runc/mount
Alexander Larsson b441dfa729 Mount cgroups in the container
We make a tmpfs on /sys/fs/cgroups, and here we mount read-only
versions of all the host cgroups. Additionally we make symlinks
for all merged subsystems.

For any "named" cgroup, such as "name=systemd" we also mount the
subset of the cgroup where the container lives as read-write. This
means that the container can create sub-cgroups inside the container
and move tasks into those, but it can never escape from its current
position in the cgroup hierarchy.

In particular, this allows systemd to mostly work in a non-privileged
container. The only problem currently is that PrivateTmp=true fails
because systemd is not allowed to mount a new /tmp.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-06-16 17:16:23 +02:00
..
nodes Update imports for new repository path 2014-06-10 08:14:16 -07:00
init.go Mount cgroups in the container 2014-06-16 17:16:23 +02:00
msmoveroot.go Refactor mounts into pkg to make changes easier 2014-04-24 10:35:20 -07:00
pivotroot.go Fix vet errors 2014-06-12 09:52:31 +04:00
ptmx.go Update imports for new repository path 2014-06-10 08:14:16 -07:00
readonly.go Refactor mounts into pkg to make changes easier 2014-04-24 10:35:20 -07:00
remount.go Refactor mounts into pkg to make changes easier 2014-04-24 10:35:20 -07:00