Skip to content

Commit 7507c64

Browse files
Merge pull request #2041 from jburianek/notify-socket-permissions
Change the permissions of the notify listener socket to rwx for everyone
2 parents bf27c2f + 7a9ffa8 commit 7507c64

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

notify_socket.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"bytes"
77
"fmt"
88
"net"
9+
"os"
910
"path/filepath"
1011

1112
"github.com/opencontainers/runtime-spec/specs-go"
@@ -60,6 +61,12 @@ func (s *notifySocket) setupSocket() error {
6061
return err
6162
}
6263

64+
err = os.Chmod(s.socketPath, 0777)
65+
if err != nil {
66+
socket.Close()
67+
return err
68+
}
69+
6370
s.socket = socket
6471
return nil
6572
}

0 commit comments

Comments
 (0)