Update libcontainer to 227771c8f611f03639f0ee

This fixes regressions for docker containers mounting into
/sys/fs/cgroup.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2015-05-11 15:05:07 -07:00
parent dc610864aa
commit 376188dcd3
5 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -3499,9 +3499,9 @@ func TestMountIntoProc(t *testing.T) {
func TestMountIntoSys(t *testing.T) {
defer deleteAllContainers()
code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true"))
if err == nil || code == 0 {
t.Fatal("container should not be able to mount into /sys")
_, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true"))
if err != nil {
t.Fatal("container should be able to mount into /sys")
}
logDone("run - mount into sys")
}