pub struct SyscallAllowlist {
pub syscalls: BTreeSet<Syscall>,
}Expand description
A per-workload kernel syscall allowlist node on the canonical policy AST.
Membership is the set of permitted syscalls; the enforcement probe
default-denies any syscall not in this set for a monitored PID. The set
is a BTreeSet so it is inherently de-duplicated and order-stable, which
keeps the AAASM-3635 lowering deterministic.
Fields§
§syscalls: BTreeSet<Syscall>The permitted syscalls.
Implementations§
Source§impl SyscallAllowlist
impl SyscallAllowlist
Sourcepub fn from_names<I, S>(names: I) -> Result<Self, String>
pub fn from_names<I, S>(names: I) -> Result<Self, String>
Build an allowlist from syscall name strings, validating each name and de-duplicating. Returns the first unknown name as an error so a typo can never silently widen (or no-op) the allowlist.
Trait Implementations§
Source§impl Clone for SyscallAllowlist
impl Clone for SyscallAllowlist
Source§fn clone(&self) -> SyscallAllowlist
fn clone(&self) -> SyscallAllowlist
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 SyscallAllowlist
impl Debug for SyscallAllowlist
Source§impl Default for SyscallAllowlist
impl Default for SyscallAllowlist
Source§fn default() -> SyscallAllowlist
fn default() -> SyscallAllowlist
Returns the “default value” for a type. Read more
impl Eq for SyscallAllowlist
Source§impl PartialEq for SyscallAllowlist
impl PartialEq for SyscallAllowlist
Source§fn eq(&self, other: &SyscallAllowlist) -> bool
fn eq(&self, other: &SyscallAllowlist) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyscallAllowlist
Auto Trait Implementations§
impl Freeze for SyscallAllowlist
impl RefUnwindSafe for SyscallAllowlist
impl Send for SyscallAllowlist
impl Sync for SyscallAllowlist
impl Unpin for SyscallAllowlist
impl UnsafeUnpin for SyscallAllowlist
impl UnwindSafe for SyscallAllowlist
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