pub enum SecurityProfile {
Default,
Restricted,
}Expand description
In-guest security profile.
Variants§
Default
Preserve normal guest-root behavior.
Restricted
Set no_new_privs, drop CAP_SYS_ADMIN, and force nosuid,nodev mounts.
Trait Implementations§
Source§impl Clone for SecurityProfile
impl Clone for SecurityProfile
Source§fn clone(&self) -> SecurityProfile
fn clone(&self) -> SecurityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecurityProfile
Source§impl Debug for SecurityProfile
impl Debug for SecurityProfile
Source§impl Default for SecurityProfile
impl Default for SecurityProfile
Source§fn default() -> SecurityProfile
fn default() -> SecurityProfile
Returns the “default value” for a type. Read more
impl Eq for SecurityProfile
Source§impl PartialEq for SecurityProfile
impl PartialEq for SecurityProfile
Source§fn eq(&self, other: &SecurityProfile) -> bool
fn eq(&self, other: &SecurityProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityProfile
Auto Trait Implementations§
impl Freeze for SecurityProfile
impl RefUnwindSafe for SecurityProfile
impl Send for SecurityProfile
impl Sync for SecurityProfile
impl Unpin for SecurityProfile
impl UnsafeUnpin for SecurityProfile
impl UnwindSafe for SecurityProfile
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