pub struct PeerCred {
pub uid: u32,
pub pid: i32,
}Expand description
Kernel-reported identity of the process on the other end of the socket.
PRODUCT.md A.3: the daemon authenticates the connecting process’s uid/pid
via SO_PEERCRED (Linux) / LOCAL_PEERCRED (macOS) rather than trusting a
token the agent could leak. This is the value those calls populate.
Fields§
§uid: u32Effective user id of the connecting process.
pid: i32Process id of the connecting process.
Implementations§
Trait Implementations§
impl Copy for PeerCred
Source§impl<'de> Deserialize<'de> for PeerCred
impl<'de> Deserialize<'de> for PeerCred
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerCred
impl StructuralPartialEq for PeerCred
Auto Trait Implementations§
impl Freeze for PeerCred
impl RefUnwindSafe for PeerCred
impl Send for PeerCred
impl Sync for PeerCred
impl Unpin for PeerCred
impl UnsafeUnpin for PeerCred
impl UnwindSafe for PeerCred
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more