mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
Merge pull request #13196 from crosbymichael/update-libocntainer-may13
Update libcontainer to a37b2a4f152e2a1c9de596f54c0
This commit is contained in:
@@ -3245,8 +3245,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) {
|
||||
func (s *DockerSuite) TestMountIntoSys(c *check.C) {
|
||||
testRequires(c, NativeExecDriver)
|
||||
defer deleteAllContainers()
|
||||
code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true"))
|
||||
if err == nil || code == 0 {
|
||||
c.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 {
|
||||
c.Fatal("container should be able to mount into /sys/fs/cgroup")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user