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.

Trait Implementations

impl Drop for Context

fn drop(&mut self)

Derived Implementations

impl Debug for Context

fn fmt(&self, __arg_0: &mut Formatter) -> Result