pub struct SecCtxBase {
pub map: FnvIndexMap<ObjID, Vec<CtxMapItem, MAP_ITEMS_PER_OBJ>, SEC_CTX_MAP_LEN>,
pub masks: FnvIndexMap<ObjID, Mask, MASKS_MAX>,
pub global_mask: Protections,
pub offset: usize,
pub flags: SecCtxFlags,
}
Expand description
The base of a Security Context, holding a map to the capabilities and delegations stored inside, masks on targets
Fields§
§map: FnvIndexMap<ObjID, Vec<CtxMapItem, MAP_ITEMS_PER_OBJ>, SEC_CTX_MAP_LEN>
A map that holds the mapping from an ObjID to the capabilities and delegations stored inside this context that apply to that target ObjID.
masks: FnvIndexMap<ObjID, Mask, MASKS_MAX>
A map holding masks that apply for a target ObjID.
global_mask: Protections
The global mask that applies to all protections gratned by this Security Context.
offset: usize
The running offset into the object where a new entry can be inserted.
flags: SecCtxFlags
Flags specific to this security context.
Implementations§
Source§impl SecCtxBase
impl SecCtxBase
pub fn new(global_mask: Protections, flags: SecCtxFlags) -> Self
Trait Implementations§
Source§impl BaseType for SecCtxBase
impl BaseType for SecCtxBase
Source§fn fingerprint() -> u64
fn fingerprint() -> u64
The fingerprint of this type.
Source§impl Debug for SecCtxBase
impl Debug for SecCtxBase
Auto Trait Implementations§
impl Freeze for SecCtxBase
impl ObjSafe for SecCtxBase
impl RefUnwindSafe for SecCtxBase
impl Send for SecCtxBase
impl StoreCopy for SecCtxBase
impl Sync for SecCtxBase
impl Unpin for SecCtxBase
impl UnwindSafe for SecCtxBase
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