diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-05-04 15:57:23 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-05-04 15:57:23 +0300 |
commit | bcc0335cab2e9c5429a3b544b0a0d80a1936fba0 (patch) | |
tree | 110dde9dba651b487b254dd671220b37c3fe951f /helpers.go | |
parent | 69b7e196fe0336c91a44da72110f44c2ec0869b0 (diff) |
Use permissive unix socket permissions
Diffstat (limited to 'helpers.go')
-rw-r--r-- | helpers.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) } |