diff --git a/notify_socket.go b/notify_socket.go index b890b5b1c1a..e7453c62220 100644 --- a/notify_socket.go +++ b/notify_socket.go @@ -6,6 +6,7 @@ import ( "bytes" "fmt" "net" + "os" "path/filepath" "github.com/opencontainers/runtime-spec/specs-go" @@ -60,6 +61,12 @@ func (s *notifySocket) setupSocket() error { return err } + err = os.Chmod(s.socketPath, 0777) + if err != nil { + socket.Close() + return err + } + s.socket = socket return nil }