pub enum Attested {
LocalUid {
uid: u32,
},
Remote,
}Expand description
What the kernel says about the peer. Not forgeable by a payload.
Variants§
LocalUid
A local peer on the Unix socket, at this uid, per the kernel.
The daemon’s socket is 0600, so in practice this is always the
operator’s own uid — the mode is what makes that true, and the
peer credential is what makes it knowable for attribution.
Remote
A peer that arrived over TCP. There is no uid to attest: the listener refuses to bind a non-loopback address without a token, so this means either loopback (same trust boundary as the UDS) or a token-bearing peer.
Trait Implementations§
impl Copy for Attested
impl Eq for Attested
impl StructuralPartialEq for Attested
Auto Trait Implementations§
impl Freeze for Attested
impl RefUnwindSafe for Attested
impl Send for Attested
impl Sync for Attested
impl Unpin for Attested
impl UnsafeUnpin for Attested
impl UnwindSafe for Attested
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