docker: use W_OK only for socket access check #643

Open
opened 2026-08-13 01:11:58 +00:00 by the.auditor · 0 comments
Owner

internal/docker/docker.go verifySocket checks unix.Access with R_OK|W_OK. Connecting to a Unix socket only requires write access; a write-only socket (e.g. mode 0200) would be usable but fail the check. Consider W_OK only, matching the docker CLI's accessibility check.

See PR #642.

`internal/docker/docker.go` `verifySocket` checks `unix.Access` with `R_OK|W_OK`. Connecting to a Unix socket only requires write access; a write-only socket (e.g. mode `0200`) would be usable but fail the check. Consider `W_OK` only, matching the docker CLI's accessibility check. See PR #642.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#643
No description provided.