pub struct SecurityContext { /* private fields */ }Expand description
The security context, a variable-length string associated with each SELinux object in the
system. The security context contains mandatory user:role:type components and an optional
[:range] component.
Security contexts are configured by userspace atop Starnix, and mapped to
[SecurityId]s for internal use in Starnix.
Implementations§
Source§impl SecurityContext
 
impl SecurityContext
Sourcepub fn high_level(&self) -> Option<&SecurityLevel>
 
pub fn high_level(&self) -> Option<&SecurityLevel>
Returns the highest security level, if it allows a range.
Sourcepub fn effective_high_level(&self) -> &SecurityLevel
 
pub fn effective_high_level(&self) -> &SecurityLevel
Returns the high level if distinct from the low level, or else returns the low level.
Trait Implementations§
Source§impl Clone for SecurityContext
 
impl Clone for SecurityContext
Source§fn clone(&self) -> SecurityContext
 
fn clone(&self) -> SecurityContext
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 moreSource§impl Debug for SecurityContext
 
impl Debug for SecurityContext
Source§impl PartialEq for SecurityContext
 
impl PartialEq for SecurityContext
impl Eq for SecurityContext
impl StructuralPartialEq for SecurityContext
Auto Trait Implementations§
impl Freeze for SecurityContext
impl RefUnwindSafe for SecurityContext
impl Send for SecurityContext
impl Sync for SecurityContext
impl Unpin for SecurityContext
impl UnwindSafe for SecurityContext
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.