pub struct EbpfRuleSet {
pub path_rules: Vec<PathRule>,
pub egress_allowlist: Vec<String>,
pub syscall_allowlist: Vec<u32>,
}Expand description
The flat rule set produced by lower_to_ebpf, consumed by the loader
daemon’s map-update path.
Fields§
§path_rules: Vec<PathRule>Filesystem path rules for PATH_BLOCKLIST / PATH_ALLOWLIST.
egress_allowlist: Vec<String>Egress host allowlist (empty means “no egress restriction”).
syscall_allowlist: Vec<u32>Permitted syscall numbers for the SYSCALL_ALLOWLIST BPF map
(AAASM-3635). Empty means “no syscall allowlist” — the enforcement
probe leaves a monitored PID’s syscalls unconstrained. Order-stable
(ascending by the AST’s BTreeSet order) so the lowering is
deterministic.
Implementations§
Source§impl EbpfRuleSet
impl EbpfRuleSet
Sourcepub fn deny_paths(&self) -> impl Iterator<Item = &str>
pub fn deny_paths(&self) -> impl Iterator<Item = &str>
Convenience: the deny path patterns, in order.
Trait Implementations§
Source§impl Clone for EbpfRuleSet
impl Clone for EbpfRuleSet
Source§fn clone(&self) -> EbpfRuleSet
fn clone(&self) -> EbpfRuleSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EbpfRuleSet
impl Debug for EbpfRuleSet
Source§impl Default for EbpfRuleSet
impl Default for EbpfRuleSet
Source§fn default() -> EbpfRuleSet
fn default() -> EbpfRuleSet
Returns the “default value” for a type. Read more
impl Eq for EbpfRuleSet
Source§impl PartialEq for EbpfRuleSet
impl PartialEq for EbpfRuleSet
impl StructuralPartialEq for EbpfRuleSet
Auto Trait Implementations§
impl Freeze for EbpfRuleSet
impl RefUnwindSafe for EbpfRuleSet
impl Send for EbpfRuleSet
impl Sync for EbpfRuleSet
impl Unpin for EbpfRuleSet
impl UnsafeUnpin for EbpfRuleSet
impl UnwindSafe for EbpfRuleSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more