RuleSet

Trait RuleSet 

Source
pub trait RuleSet {
    // Required methods
    fn simple_rules(&self) -> Vec<Sysno>;
    fn name(&self) -> &'static str;

    // Provided method
    fn conditional_rules(&self) -> HashMap<Sysno, Vec<SeccompRule>> { ... }
}
Expand description

A RuleSet is a collection of SeccompRule and LandlockRule s that enable a functionality, such as opening files or starting threads.

Required Methods§

Source

fn simple_rules(&self) -> Vec<Sysno>

A simple rule is a seccomp rule that just allows the syscall without restriction.

Source

fn name(&self) -> &'static str

The name of the profile.

Provided Methods§

Source

fn conditional_rules(&self) -> HashMap<Sysno, Vec<SeccompRule>>

A conditional rule is a seccomp rule that uses a condition to restrict the syscall, e.g. only specific flags as parameters.

Implementations on Foreign Types§

Source§

impl<T: ?Sized + RuleSet> RuleSet for &T

Implementors§