pub struct NetlinkState { /* private fields */ }Expand description
Per-sandbox registry of virtualized netlink cookie fds.
Keyed by (pid, fd) — the exact fd number allocated in the child
when our socket(AF_NETLINK, ..., NETLINK_ROUTE) handler returned
InjectFdSendTracked. Using the fd number directly (instead of
comparing /proc/<pid>/fd/<fd> inodes against a set of injected
inodes) avoids TOCTOU: once we record (pid, fd), no other thread
can redirect that fd slot without our close handler observing it
and removing the entry first.
Implementations§
Source§impl NetlinkState
impl NetlinkState
Trait Implementations§
Source§impl Default for NetlinkState
impl Default for NetlinkState
Source§fn default() -> NetlinkState
fn default() -> NetlinkState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for NetlinkState
impl RefUnwindSafe for NetlinkState
impl Send for NetlinkState
impl Sync for NetlinkState
impl Unpin for NetlinkState
impl UnsafeUnpin for NetlinkState
impl UnwindSafe for NetlinkState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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