Struct seccomp::Context
[−]
[src]
pub struct Context { // some fields omitted }
Seccomp context
Methods
impl Context
fn default(def_action: Action) -> Result<Context, SeccompError>
Creates new context with default action
fn add_rule(&mut self, rule: Rule) -> Result<(), SeccompError>
Adds rule to the context
fn load(&self) -> Result<(), SeccompError>
Loads the filter into the kernel. Rules will be applied when this function returns.