Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
| ... | ... |
@@ -1614,10 +1614,10 @@ func (s *DockerSuite) TestBuildWithInaccessibleFilesInContext(c *check.C) {
|
| 1614 | 1614 |
c.Fatalf("failed to chown directory to root: %s", err)
|
| 1615 | 1615 |
} |
| 1616 | 1616 |
if err = os.Chmod(pathToDirectoryWithoutReadAccess, 0444); err != nil {
|
| 1617 |
- c.Fatalf("failed to chmod directory to 755: %s", err)
|
|
| 1617 |
+ c.Fatalf("failed to chmod directory to 444: %s", err)
|
|
| 1618 | 1618 |
} |
| 1619 | 1619 |
if err = os.Chmod(pathToFileInDirectoryWithoutReadAccess, 0700); err != nil {
|
| 1620 |
- c.Fatalf("failed to chmod file to 444: %s", err)
|
|
| 1620 |
+ c.Fatalf("failed to chmod file to 700: %s", err)
|
|
| 1621 | 1621 |
} |
| 1622 | 1622 |
|
| 1623 | 1623 |
buildCmd := exec.Command("su", "unprivilegeduser", "-c", fmt.Sprintf("%s build -t %s .", dockerBinary, name))
|