Jelajahi Sumber

remove world/group writable perms

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

Signed-off-by: epeterso <epeterson@breakpoint-labs.com>
epeterso 8 tahun lalu
induk
melakukan
3ec8fed747
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      container/container.go

+ 2 - 2
container/container.go

@@ -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
 	}