1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

remove world/group writable perms

change files from being written with group and world writable permissions.

Signed-off-by: epeterso <epeterson@breakpoint-labs.com>
This commit is contained in:
epeterso 2016-11-01 16:00:17 -04:00
parent bf16fa47b7
commit 3ec8fed747

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
}