Merge pull request #34419 from keloyang/config.v2.json

security: Chmod config.v2.json to 0600
Upstream-commit: e4c19aa529342e0c8947288cbf9a8cbbf025100a
Component: engine
This commit is contained in:
Yong Tang
2017-08-14 08:39:58 -07:00
committed by GitHub

View File

@ -167,7 +167,7 @@ func (container *Container) toDisk() (*Container, error) {
}
// Save container settings
f, err := ioutils.NewAtomicFileWriter(pth, 0644)
f, err := ioutils.NewAtomicFileWriter(pth, 0600)
if err != nil {
return nil, err
}