mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update test for /sys mounting
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
87c35d0e0a
commit
677d76cd4a
1 changed files with 3 additions and 3 deletions
|
@ -3213,8 +3213,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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue