mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-27 20:36:30 -04:00
6ba7dd52e8779f6257cec3a0c8b49b548d4efea5
For FreeBSD 12.2 and before I think we could use SCM_CREDS to get the pid of the peer. For FreeBSD 13.x and later, the Xucred is extended with a pid. For now we'll leave it unimplemented and expect to add FreeBSD 13+ support whern it is released. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
Description
Get the PID+UID of processes accessing UNIX domain sockets/Windows named pipes.
88 KiB
Languages
Go
100%