Signed-off-by: Thomas Texier <sharkone@en-mousse.org>
| ... | ... |
@@ -705,7 +705,6 @@ func TestExecWithPrivileged(t *testing.T) {
|
| 705 | 705 |
|
| 706 | 706 |
cmd := exec.Command(dockerBinary, "exec", "parent", "sh", "-c", "mknod /tmp/sda b 8 0") |
| 707 | 707 |
out, _, err := runCommandWithOutput(cmd) |
| 708 |
- fmt.Printf("%s", out)
|
|
| 709 | 708 |
if err == nil || !strings.Contains(out, "Operation not permitted") {
|
| 710 | 709 |
t.Fatalf("exec mknod in --cap-drop=ALL container without --privileged should failed")
|
| 711 | 710 |
} |