mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 13:27:16 +00:00
Windows could only listen on and dial named pipes. Also accept AF_UNIX sockets (Windows 10 1803+, Server 2019+) as unix://<path>, unix:<path> or a bare path, next to \\.\pipe\<name>, //./pipe/<name> and npipe://. A scheme is authoritative and named pipes stay the default. The address is parsed in internal/localaddr, shared by the listener, the dialer and the debug server's local/TCP check. os.Chmod and os.Chown do nothing on Windows, so the parent directory is created with MkdirAllWithACL and the socket gets a protected DACL for Builtin Administrators and Local System. Windows has the 108 byte sun_path limit of Linux, but there is hope, see https://lwn.net/Articles/987098/ Continues https://github.com/containerd/containerd/pull/12921 Co-authored-by: David Scott <dave@recoil.org> Co-authored-by: Derek McGowan <derek@mcg.dev> Assisted-by: OpenCode (claude-sonnet-5-5) Signed-off-by: Eric Curtin <eric.curtin@docker.com>