WIP TOFU socket ownership

This commit is contained in:
Theodor S. Midtlien
2026-06-10 17:40:17 +02:00
parent 644615fed6
commit 064f7bf0fd
7 changed files with 258 additions and 24 deletions
+16
View File
@@ -0,0 +1,16 @@
//go:build !linux && !darwin && !freebsd
package cmd
import (
"fmt"
"net"
"runtime"
)
// peerUID is unimplemented on this platform, so the trust-on-first-use socket
// migration cannot run here. Configure --socket-owner explicitly, or use
// --disable-strict-socket. (Windows uses a TCP socket and never reaches this.)
func peerUID(net.Conn) (int, error) {
return 0, fmt.Errorf("peer credential check not supported on %s", runtime.GOOS)
}