pub enum SecurityProfile {
Default,
Restricted,
}Expand description
Sandbox-level in-guest security profile.
Variants§
Default
Preserve normal guest-root semantics.
Exec sessions do not set no_new_privs and keep CAP_SYS_ADMIN, so workflows such as sudo, package managers, and Docker-in-Docker work as they would in a regular VM.
Restricted
Harden guest exec sessions.
Agentd sets no_new_privs, drops CAP_SYS_ADMIN, and forces nosuid,nodev on user mounts. Workloads that need privilege elevation or guest mount administration, such as sudo and Docker-in-Docker, are intentionally incompatible with this profile.
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
Source§impl<'de> Deserialize<'de> for SecurityProfile
impl<'de> Deserialize<'de> for SecurityProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 ==.Source§impl Serialize for SecurityProfile
impl Serialize for SecurityProfile
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