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§
Sourcefn simple_rules(&self) -> Vec<Sysno>
fn simple_rules(&self) -> Vec<Sysno>
A simple rule is a seccomp rule that just allows the syscall without restriction.
Provided Methods§
Sourcefn conditional_rules(&self) -> HashMap<Sysno, Vec<SeccompRule>>
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.