pub struct SyscallEvent {
pub syscall: String,
pub category: SyscallCategory,
pub pid: u32,
pub parent_pid: Option<u32>,
pub path: Option<String>,
pub host: Option<IpAddr>,
pub port: Option<u16>,
pub size: Option<u64>,
pub argv: Option<Vec<String>>,
pub denied: bool,
}Expand description
An intercepted syscall event observed by the seccomp supervisor.
Fields§
§syscall: StringSyscall name (e.g., “connect”, “openat”, “execve”, “clone”).
category: SyscallCategoryHigh-level category.
pid: u32PID of the process that made the syscall.
parent_pid: Option<u32>Parent PID (read from /proc/{pid}/stat).
path: Option<String>Resolved filesystem path (for openat, execve, etc.).
host: Option<IpAddr>Destination IP address (for connect, sendto).
port: Option<u16>Destination port (for connect, sendto, bind).
size: Option<u64>Size argument (for mmap, brk).
argv: Option<Vec<String>>Command arguments (for execve/execveat).
denied: boolWhether the supervisor denied this syscall.
Implementations§
Source§impl SyscallEvent
impl SyscallEvent
Sourcepub fn path_contains(&self, s: &str) -> bool
pub fn path_contains(&self, s: &str) -> bool
Check if the path contains a substring.
Sourcepub fn argv_contains(&self, s: &str) -> bool
pub fn argv_contains(&self, s: &str) -> bool
Check if any argv element contains a substring.
Trait Implementations§
Source§impl Clone for SyscallEvent
impl Clone for SyscallEvent
Source§fn clone(&self) -> SyscallEvent
fn clone(&self) -> SyscallEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyscallEvent
impl RefUnwindSafe for SyscallEvent
impl Send for SyscallEvent
impl Sync for SyscallEvent
impl Unpin for SyscallEvent
impl UnsafeUnpin for SyscallEvent
impl UnwindSafe for SyscallEvent
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