macOS and most of the BSDs have a getpeereid(3) library routine, which can be used to retrieve the effective UID and GID for a given Unix domain socket.
This roughly mirrors the functionality provided by getsockopt(2) + SO_PEERCRED on Linux (minus the PID), which the nix crate already supports.
I have the bandwidth and ability to implement this, if desired.
macOS and most of the BSDs have a
getpeereid(3)library routine, which can be used to retrieve the effective UID and GID for a given Unix domain socket.This roughly mirrors the functionality provided by
getsockopt(2)+SO_PEERCREDon Linux (minus the PID), which thenixcrate already supports.I have the bandwidth and ability to implement this, if desired.