You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Close the UDS socket bind-to-chmod race in the daemon #1506
The daemon binds its Unix socket at the ambient umask and then sets 0o600 as a second step, leaving a brief window where the socket exists at the process umask.
Problem Statement
Between bind() and set_permissions(0o600) the socket may be momentarily accessible to other local users on a shared-home system.
Proposed Solution
Apply umask(0o177) around the bind, or bind inside a 0o700 directory, so the socket is never exposed. Governed by ADR-052.
Acceptance Criteria
No window exists where the socket is more permissive than owner-only
Activity
malibio commentedon Jul 6, 2026
Frontend baseline: 146 test files passed, 3939 tests passed.