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.
func ValidatePathOnVolume ¶
ValidatePathOnVolume is ValidatePath for a path under a mounted volume whose root the platform owns and may leave group-writable (a Kubernetes fsGroup). Only that one directory skips the group-writability test; its owner is still checked, and a world-writable root without the sticky bit is refused.
func ValidatePathOnWorldWritableVolume ¶
ValidatePathOnWorldWritableVolume is ValidatePathOnVolume for an operator who explicitly accepted a volume root that any local user can write, such as a local-path provisioner's 0777 directory. Another user could then replace the state directory inside it.
Types ¶
This section is empty.