pub struct SeccompTraceReader { /* private fields */ }Expand description
Reads /dev/kmsg for SECCOMP audit records and collects unique syscalls.
Implementations§
Source§impl SeccompTraceReader
impl SeccompTraceReader
Sourcepub fn new(pid: u32, output_path: &Path) -> Self
pub fn new(pid: u32, output_path: &Path) -> Self
Create a new trace reader for the given child PID.
Sourcepub fn start_recording(&mut self) -> Result<()>
pub fn start_recording(&mut self) -> Result<()>
Start the background reader thread.
Opens /dev/kmsg and filters for audit: type=1326 (SECCOMP)
messages matching the target PID.
Sourcepub fn stop_and_flush(self)
pub fn stop_and_flush(self)
Signal the reader to stop and wait for it to flush.
Auto Trait Implementations§
impl Freeze for SeccompTraceReader
impl !RefUnwindSafe for SeccompTraceReader
impl Send for SeccompTraceReader
impl Sync for SeccompTraceReader
impl Unpin for SeccompTraceReader
impl UnsafeUnpin for SeccompTraceReader
impl !UnwindSafe for SeccompTraceReader
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