From 470d4933ecbdbfeda2de12d31140c435bf8b3dc9 Mon Sep 17 00:00:00 2001 From: Alfredo Beaumont Date: Thu, 26 Oct 2017 12:11:23 +0200 Subject: [PATCH] runtime: Fix permissions in mkdir Signed-off-by: Alfredo Beaumont --- runtime/storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/storage.go b/runtime/storage.go index 33e330b..6ac4a56 100644 --- a/runtime/storage.go +++ b/runtime/storage.go @@ -74,7 +74,7 @@ func (s *storage) Install(d DriverImage, update bool) (*DriverImageStatus, error } func (s *storage) tempPath() (string, error) { - if err := os.MkdirAll(s.temp, 0655); err != nil { + if err := os.MkdirAll(s.temp, 0755); err != nil { return "", err } @@ -84,7 +84,7 @@ func (s *storage) tempPath() (string, error) { func (s *storage) moveImage(source string, d DriverImage, di Digest) error { root := s.rootFSPath(d, di) dir := filepath.Dir(root) - if err := os.MkdirAll(dir, 0655); err != nil { + if err := os.MkdirAll(dir, 0755); err != nil { return err }