Allow caller to change the labels on a directory tree.

We want to add this to libcontainer so that we can change docker so that
when you volume mount into a labeled container, we want to allow the
administrator/user the ability to tell docker to fix the labels on the mount.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
fix the order of setns()

Docker-DCO-1.1-Signed-off-by: Takahiro Maebashi <maebashi@iij.ad.jp> (github: maebashi)
Merge branch 'master' of github.com:docker/libcontainer
Merge branch 'master' of github.com:docker/libcontainer

Conflicts:
	label/label_selinux.go
	mount/init.go
	mount/types.go
	selinux/selinux.go
Merge branch 'master' of github.com:docker/libcontainer
namespaces: nsenter: ignore nonexistent namespaces

If a particular kernel doesn't have namespace directories that
libcontainer tries to attain during nsenter(), ignore the error (this is
consistent with the previous implementation of nsenter()).

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
remove unnecessary headers

Docker-DCO-1.1-Signed-off-by: Takahiro Maebashi <maebashi@iij.ad.jp> (github: maebashi)
Merge pull request #105 from rhatdan/master

Add label.InitLabels functioni. Allows generation of labels based on options
Libcontainer fs.GetStats() will not look for cgroups relative to the cgroup of init process if the parent
in cgroups.Cgroup is absolute. This is required to get stats of other containers while running inside a docker container.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Implement system.GetClockTicks for all platforms

Docker-DCO-1.1-Signed-off-by: Bernerd Schaefer <bj.schaefer@gmail.com> (github: bernerdschaefer)
Merge pull request #130 from vishh/fix_cgroup_path

Make fs.GetStats() work when used from inside a docker container.
Merge pull request #133 from soundcloud/non-linux-clock-ticks

Implement system.GetClockTicks for all platforms
Merge pull request #58 from maebashi/fix-setns-order

fix the order of setns()
Move "pkg/user" into libcontainer and add support for GetUserGroupSupplementary to return "Home" too

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Merge pull request #103 from tianon/user

Move "pkg/user" into libcontainer...
Update more "dotcloud/docker" refs to "docker/docker"

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Merge pull request #134 from tianon/fix-more-dotclouds

Update more "dotcloud/docker" refs to "docker/docker"
Only import "testing" from *_test.go

This prevents the testing package flags from leaking into the
flagsets of binaries that import libcontainer.

Docker-DCO-1.1-Signed-off-by: Peter Bourgon <peter@bourgon.org> (github: peterbourgon)
Merge pull request #135 from peterbourgon/master

Only import "testing" from *_test.go
DefaultCreateCommand supports command w/ flags

namespaces.DefaultCreateCommand prepends the user-supplied command to
execute with "--", so that "nsinit init" does not attempt to interpret
it.

Docker-DCO-1.1-Signed-off-by: Bernerd Schaefer <bj.schaefer@gmail.com> (github: bernerdschaefer)