Browse code

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 authored on 2016/11/02 05:00:17
Showing 1 changed files
... ...
@@ -147,7 +147,7 @@ func (container *Container) ToDisk() error {
147 147
 		return err
148 148
 	}
149 149
 
150
-	jsonSource, err := ioutils.NewAtomicFileWriter(pth, 0666)
150
+	jsonSource, err := ioutils.NewAtomicFileWriter(pth, 0644)
151 151
 	if err != nil {
152 152
 		return err
153 153
 	}
... ...
@@ -207,7 +207,7 @@ func (container *Container) WriteHostConfig() error {
207 207
 		return err
208 208
 	}
209 209
 
210
-	f, err := ioutils.NewAtomicFileWriter(pth, 0666)
210
+	f, err := ioutils.NewAtomicFileWriter(pth, 0644)
211 211
 	if err != nil {
212 212
 		return err
213 213
 	}