Struct libscmp::Arg [−][src]
#[repr(C)]pub struct Arg { /* fields omitted */ }
Expand description
Represents a syscall argument comparison, used in a filter rule.
Implementations
Create a syscall argument comparison given the argument number, comparison operator, and two data arguments.
For example, Arg::new(1, Cmp::Eq, 2, 0)
is equivalent to Arg::new_eq(1, 2)
, and
Arg::new(0, Cmp::MaskedEq, 1, 2)
is equivalent to Arg::new_masked_eq(0, 1, 2)
.
Create a syscall argument comparison that filters for the given argument being not equal to the given value.
Essentially, this filters for SYSCALL_ARGS[arg] != data
.
Create a syscall argument comparison that filters for the given argument being less than the given value.
Essentially, this filters for SYSCALL_ARGS[arg] < data
.
Create a syscall argument comparison that filters for the given argument being less than or equal to the given value.
Essentially, this filters for SYSCALL_ARGS[arg] <= data
.
Create a syscall argument comparison that filters for the given argument being equal to the given value.
Essentially, this filters for SYSCALL_ARGS[arg] == data
.
Create a syscall argument comparison that filters for the given argument being greater than or equal to the given value.
Essentially, this filters for SYSCALL_ARGS[arg] >= data
.
Create a syscall argument comparison that filters for the given argument being greater than the given value.
Essentially, this filters for SYSCALL_ARGS[arg] > data
.
Create a syscall argument comparison that filters for the given argument being equal to
the given value, once the specified mask
is applied.
Essentially, this filters for SYSCALL_ARGS[arg] & mask == data
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Arg
impl UnwindSafe for Arg
Blanket Implementations
Mutably borrows from an owned value. Read more