pub struct MapsLayout {
pub mode_flags: Vec<u32>,
pub exec_allowlist: Vec<ExecAllowEntry>,
pub net_rules: Vec<NetRuleEntry>,
pub net_parents: Vec<NetParentEntry>,
pub fs_rules: Vec<FsRuleEntry>,
}
Expand description
Serialized representation of policy data for BPF maps.
Fields§
§mode_flags: Vec<u32>
Entries for the mode_flags
map.
exec_allowlist: Vec<ExecAllowEntry>
Entries for the exec_allowlist
map.
net_rules: Vec<NetRuleEntry>
Entries for the net_rules
map.
net_parents: Vec<NetParentEntry>
Entries for the net_parents
map.
fs_rules: Vec<FsRuleEntry>
Entries for the fs_rules
map.
Implementations§
Source§impl MapsLayout
impl MapsLayout
Sourcepub fn to_binary(&self) -> MapsBinary
pub fn to_binary(&self) -> MapsBinary
Convert the layout into raw byte buffers for each map.
Trait Implementations§
Source§impl Clone for MapsLayout
impl Clone for MapsLayout
Source§fn clone(&self) -> MapsLayout
fn clone(&self) -> MapsLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MapsLayout
impl RefUnwindSafe for MapsLayout
impl Send for MapsLayout
impl Sync for MapsLayout
impl Unpin for MapsLayout
impl UnwindSafe for MapsLayout
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