Documentation
¶
Overview ¶
Package localsocket provides same-user Unix-domain HTTP transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
DialContext connects only after both pathname custody and peer UID are verified. Peer credentials come from the kernel, not application bytes.
func Listen ¶
Listen creates a 0600 Unix socket and rejects clients whose kernel-reported effective UID differs from the server's. Only a verified, refused stale socket is removed; a live socket or any other existing filesystem object is refused.
func ValidatePath ¶
ValidatePath requires an absolute canonical socket path inside an existing, euid-owned 0700 directory. Every ancestor must also prevent another local user from replacing the directory entry, including through symbolic links.
Types ¶
This section is empty.