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:
parent
bf16fa47b7
commit
3ec8fed747
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue