Skip to main content

Module peercred

Module peercred 

Source
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_result over peer_uid.
current_uid
Real uid of this process (getuid), matching Uid::current.
peer_uid
Peer uid from SO_PEERCRED on Linux, or getpeereid on BSD/macOS.