Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
| ... | ... |
@@ -3213,8 +3213,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) {
|
| 3213 | 3213 |
func (s *DockerSuite) TestMountIntoSys(c *check.C) {
|
| 3214 | 3214 |
testRequires(c, NativeExecDriver) |
| 3215 | 3215 |
defer deleteAllContainers() |
| 3216 |
- code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true")) |
|
| 3217 |
- if err == nil || code == 0 {
|
|
| 3218 |
- c.Fatal("container should not be able to mount into /sys")
|
|
| 3216 |
+ _, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true")) |
|
| 3217 |
+ if err != nil {
|
|
| 3218 |
+ c.Fatal("container should be able to mount into /sys/fs/cgroup")
|
|
| 3219 | 3219 |
} |
| 3220 | 3220 |
} |