pub struct SecurityId(/* private fields */);
Expand description
The Security ID (SID) used internally to refer to a security context.
Implementations§
Source§impl SecurityId
impl SecurityId
Sourcepub fn initial(initial_sid: InitialSid) -> Self
pub fn initial(initial_sid: InitialSid) -> Self
Returns a SecurityId
encoding the specified initial Security Context.
These are used when labeling kernel resources created before policy
load, allowing the policy to determine the Security Context to use.
Trait Implementations§
Source§impl Clone for SecurityId
impl Clone for SecurityId
Source§fn clone(&self) -> SecurityId
fn clone(&self) -> SecurityId
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 SecurityId
impl Debug for SecurityId
Source§impl Hash for SecurityId
impl Hash for SecurityId
Source§impl PartialEq for SecurityId
impl PartialEq for SecurityId
impl Copy for SecurityId
impl Eq for SecurityId
impl StructuralPartialEq for SecurityId
Auto Trait Implementations§
impl Freeze for SecurityId
impl RefUnwindSafe for SecurityId
impl Send for SecurityId
impl Sync for SecurityId
impl Unpin for SecurityId
impl UnwindSafe for SecurityId
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
)