Struct seccomp::Rule
[−]
[src]
pub struct Rule { // some fields omitted }
Seccomp rule
Methods
impl Rule
fn new(syscall_nr: usize, cmp: Cmp, action: Action) -> Rule
Create new rule for syscall_nr
using comparison cmp
.
fn add_comparison(&mut self, cmp: Cmp)
Adds comparison. Multiple comparisons will be ANDed together.