Struct seccomp_droundy::Context
[−]
[src]
pub struct Context { /* fields omitted */ }
Seccomp context
Methods
impl Context
[src]
pub fn default(def_action: Action) -> Result<Context, SeccompError>
[src]
Creates new context with default action
pub fn add_rule(&mut self, rule: Rule) -> Result<(), SeccompError>
[src]
Adds rule to the context
pub fn add_arch(&mut self, arch: Arch) -> Result<(), SeccompError>
[src]
Adds an arch to the rule.
pub fn load(&self) -> Result<(), SeccompError>
[src]
Loads the filter into the kernel. Rules will be applied when this function returns.
Trait Implementations
impl Debug for Context
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more