Merge pull request #27962 from epeterso/patch-2

remove world/group writable perms
This commit is contained in:
Kenfe-Mickaël Laventure 2016-11-02 11:22:40 -07:00 committed by GitHub
commit fae5a9e053

View file

@ -147,7 +147,7 @@ func (container *Container) ToDisk() error {
return err
}
jsonSource, err := ioutils.NewAtomicFileWriter(pth, 0666)
jsonSource, err := ioutils.NewAtomicFileWriter(pth, 0644)
if err != nil {
return err
}
@ -207,7 +207,7 @@ func (container *Container) WriteHostConfig() error {
return err
}
f, err := ioutils.NewAtomicFileWriter(pth, 0666)
f, err := ioutils.NewAtomicFileWriter(pth, 0644)
if err != nil {
return err
}