pub struct SecCtx { /* private fields */ }Expand description
A User-space representation of a Security Context.
Implementations§
Source§impl SecCtx
impl SecCtx
Sourcepub fn active_ctx() -> SecCtx
pub fn active_ctx() -> SecCtx
Returns the currently active SecCtx.
Sourcepub fn set_active(&self) -> Result<(), TwzError>
pub fn set_active(&self) -> Result<(), TwzError>
Sets this SecCtx as the active Security Context.
Sourcepub fn base(&self) -> &SecCtxBase
pub fn base(&self) -> &SecCtxBase
Returns the SecCtxBase of this SecCtx.
Sourcepub fn new(
object_create_spec: ObjectCreate,
global_mask: Protections,
flags: SecCtxFlags,
) -> Result<Self, TwzError>
pub fn new( object_create_spec: ObjectCreate, global_mask: Protections, flags: SecCtxFlags, ) -> Result<Self, TwzError>
Create a new SecCtx.
Sourcepub fn remove_cap(&mut self)
pub fn remove_cap(&mut self)
Sourcepub fn remove_del(&mut self)
pub fn remove_del(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecCtx
impl !ObjSafe for SecCtx
impl RefUnwindSafe for SecCtx
impl Send for SecCtx
impl StoreCopy for SecCtx
impl Sync for SecCtx
impl Unpin for SecCtx
impl UnwindSafe for SecCtx
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