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.
Trait Implementations§
Source§impl Clone for SecurityContext
impl Clone for SecurityContext
Source§fn clone(&self) -> SecurityContext
fn clone(&self) -> SecurityContext
Returns a copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)