Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

cmd/soju: Create unix domain sockets with the right permissions#65

Open
zsoltiv wants to merge 1 commit intoemersion:masterfrom
zsoltiv:fix-racy-admin-socket-creation
Open

cmd/soju: Create unix domain sockets with the right permissions#65
zsoltiv wants to merge 1 commit intoemersion:masterfrom
zsoltiv:fix-racy-admin-socket-creation

Conversation

@zsoltiv
Copy link
Copy Markdown

@zsoltiv zsoltiv commented Dec 12, 2024

This PR eliminates a small window of time when each unix domain socket has the directory's permissions. This is accomplished by setting and resetting umask for each net.Listener object.

This eliminates a small window of time when each unix domain socket
has the directory's permissions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant