Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index 8cc66da9..cb46e322 100644
--- a/helpers.go
+++ b/helpers.go
@@ -37,6 +37,14 @@ func createUnixSocket(addr string) (net.Listener, *os.File) {
fatal(err)
}
+ // This socket should be world-accessible; we have authentication at the
+ // application level. When pages runs with privilege separation, the
+ // default permissions will prevent gitlab-rails from connecting to the
+ // admin socket.
+ if err := os.Chmod(addr, 0777); err != nil {
+ fatal(err)
+ }
+
return l, fileForListener(l)
}