Skip to content

Commit

Permalink
sorting out permission issues when using a custom shmem directory
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-at-startupmedia committed Oct 10, 2024
1 parent 804b5eb commit 8cd808a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/jinzhu/configor v1.2.2
github.com/joe-at-startupmedia/depgraph v0.0.1
github.com/joe-at-startupmedia/sqlite v0.0.1
github.com/joe-at-startupmedia/xipc v0.0.12
github.com/joe-at-startupmedia/xipc v0.0.13
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ github.com/joe-at-startupmedia/shmemipc v0.0.12 h1:K7Uxq5mK9yIhd2+Mx8CHl5fF5KzwA
github.com/joe-at-startupmedia/shmemipc v0.0.12/go.mod h1:7WyKrzdmQEHKZGM9BKzkEKR8AH0/4rZ29r3Vy5BD8sU=
github.com/joe-at-startupmedia/sqlite v0.0.1 h1:icVtthRliO/RoFniW7MNkPK8KOuDX0LEzwX2aHaTEoM=
github.com/joe-at-startupmedia/sqlite v0.0.1/go.mod h1:8OmR/zkldw8ZSL5SQ/ej7UO4PJTCNpH9CdD7B9ulMYo=
github.com/joe-at-startupmedia/xipc v0.0.12 h1:4/fcgQHTkPkqlpT1cPuzh4Q/fDbzscnnlrHnGCdpNfE=
github.com/joe-at-startupmedia/xipc v0.0.12/go.mod h1:Ub7Ev8LECOW2CyzN7D+GiwZw1etrdLwJD0i4P5OgHWs=
github.com/joe-at-startupmedia/xipc v0.0.13 h1:vSdiGbZUWMIaDiys7yOzqM5JfOjSHV5Hj2nfkD8BLMs=
github.com/joe-at-startupmedia/xipc v0.0.13/go.mod h1:XeZbnF1Lk1KgogbsrpcLSglXkbg+4LJ8IYhLEjk7VVg=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
Expand Down
4 changes: 2 additions & 2 deletions pmond/god/responder_helper_mem.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func connectResponder() {
shmemDir := pmond.Config.Directory.Shmem
_, err := os.Stat(shmemDir)
if os.IsNotExist(err) {
err = os.MkdirAll(shmemDir, 0644)
err = os.MkdirAll(shmemDir, 0777)
handleOpenError(err) //fatal
}

Expand All @@ -28,7 +28,7 @@ func connectResponder() {
BasePath: pmond.Config.Directory.Shmem,
MaxMsgSize: 32768,
Flags: os.O_RDWR | os.O_CREATE | os.O_TRUNC,
Mode: 0666,
Mode: 0660,
}
ownership := xipc.Ownership{
Group: pmond.Config.MessageQueue.Group,
Expand Down
2 changes: 1 addition & 1 deletion pmond/god/responder_helper_pmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func connectResponder() {
pmqDir := pmond.Config.Directory.PosixMQ
_, err := os.Stat(pmqDir)
if os.IsNotExist(err) {
err = os.MkdirAll(pmqDir, 0644)
err = os.MkdirAll(pmqDir, 0777)
handleOpenError(err) //fatal
}

Expand Down

0 comments on commit 8cd808a

Please sign in to comment.