pub struct NamespaceCommandRunner;Expand description
Run trusted helper actions inside a container’s namespaces.
Implementations§
Source§impl NamespaceCommandRunner
impl NamespaceCommandRunner
Sourcepub fn run(
pid: u32,
rootless: bool,
using_gvisor: bool,
probe: NamespaceProbe,
process_identity: Option<&ProcessIdentity>,
timeout: Option<Duration>,
) -> Result<bool>
pub fn run( pid: u32, rootless: bool, using_gvisor: bool, probe: NamespaceProbe, process_identity: Option<&ProcessIdentity>, timeout: Option<Duration>, ) -> Result<bool>
Run a probe-style helper inside the target container’s namespaces.
This enters namespaces in-process, then immediately applies
PR_SET_NO_NEW_PRIVS and drops capabilities before executing any
container-controlled binary. That avoids running helpers via a privileged
host nsenter process.
Auto Trait Implementations§
impl Freeze for NamespaceCommandRunner
impl RefUnwindSafe for NamespaceCommandRunner
impl Send for NamespaceCommandRunner
impl Sync for NamespaceCommandRunner
impl Unpin for NamespaceCommandRunner
impl UnsafeUnpin for NamespaceCommandRunner
impl UnwindSafe for NamespaceCommandRunner
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