pub struct LinuxTracer;Expand description
Runs commands under ptrace with a seccomp-bpf filter in front.
Each call to Tracer::run starts and traces its own process tree from a new
thread that has no other child, so tracers on several threads of one process run
independently, and no run waits for a child that its caller started.
Implementations§
Source§impl LinuxTracer
impl LinuxTracer
Trait Implementations§
Source§impl Clone for LinuxTracer
impl Clone for LinuxTracer
impl Copy for LinuxTracer
Source§impl Debug for LinuxTracer
impl Debug for LinuxTracer
Source§impl Default for LinuxTracer
impl Default for LinuxTracer
Source§impl Tracer for LinuxTracer
impl Tracer for LinuxTracer
Source§fn run(
&self,
request: &RunRequest,
echo: &dyn EchoSink,
cancel: &Cancellation,
) -> Result<RunResult, TraceError>
fn run( &self, request: &RunRequest, echo: &dyn EchoSink, cancel: &Cancellation, ) -> Result<RunResult, TraceError>
Run one command, wait for its whole process tree to finish, and report what
it did. Read more
Source§fn run_untraced(
&self,
request: &RunRequest,
echo: &dyn EchoSink,
cancel: &Cancellation,
) -> Result<RunResult, TraceError>
fn run_untraced( &self, request: &RunRequest, echo: &dyn EchoSink, cancel: &Cancellation, ) -> Result<RunResult, TraceError>
Run a command without tracing its dependencies. The engine never reuses its
result. Implementations must preserve the request’s environment, streams and
cancellation. The result must mark observation incomplete, including any
forced stream closure, and must not claim unobserved dependencies. Read more
Source§fn extended_attributes(
&self,
path: &Path,
follow: bool,
) -> Result<ExtendedAttributes>
fn extended_attributes( &self, path: &Path, follow: bool, ) -> Result<ExtendedAttributes>
The extended attributes of
path, each name with its value, sorted by name,
following a final symbolic link when follow is set, or not when it is not.
A file system that keeps no extended attributes has none. Read moreSource§fn machine_state(&self, cwd: &Path) -> MachineState
fn machine_state(&self, cwd: &Path) -> MachineState
The machine and process state that a command started in
cwd inherits: the
kernel, the resource limits, the CPUs it may run on, the memory, and the file
system that holds cwd, with its size and free space. A part that cannot be
read is None. Read moreAuto Trait Implementations§
impl Freeze for LinuxTracer
impl RefUnwindSafe for LinuxTracer
impl Send for LinuxTracer
impl Sync for LinuxTracer
impl Unpin for LinuxTracer
impl UnsafeUnpin for LinuxTracer
impl UnwindSafe for LinuxTracer
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