Update test for /sys mounting
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
87c35d0e0a
commit
677d76cd4a
|
@ -3213,8 +3213,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) {
|
||||||
func (s *DockerSuite) TestMountIntoSys(c *check.C) {
|
func (s *DockerSuite) TestMountIntoSys(c *check.C) {
|
||||||
testRequires(c, NativeExecDriver)
|
testRequires(c, NativeExecDriver)
|
||||||
defer deleteAllContainers()
|
defer deleteAllContainers()
|
||||||
code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true"))
|
_, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true"))
|
||||||
if err == nil || code == 0 {
|
if err != nil {
|
||||||
c.Fatal("container should not be able to mount into /sys")
|
c.Fatal("container should be able to mount into /sys/fs/cgroup")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue