Expand description
Same-uid check for an accepted Unix socket. No unsafe in this crate.
Functionsยง
- accept_
from_ result - Whether an accepted socket may stay open.
- accept_
peer - Accept the peer when its uid matches the current process uid.
- accept_
socket accept_from_resultoverpeer_uid.- current_
uid - Real uid of this process (
getuid), matchingUid::current. - peer_
uid - Peer uid from
SO_PEERCREDon Linux, orgetpeereidon BSD/macOS.