pub struct LinuxPreparation {
pub clone_flags: u64,
pub map_current_user: bool,
}Expand description
Linux-specific launch requirements for a SandboxProcessConfig.
Fields§
§clone_flags: u64Linux CLONE_NEW* flags to pass to the operation that creates the
child. Zero when the debug sandbox escape hatch is active.
Namespace creation must happen as part of cloning the child so the worker starts inside its namespaces. The platform process builder also establishes the child user namespace’s uid/gid mappings before exec. Confined Linux launches require user, mount, and IPC namespaces, plus a network namespace unless the profile allows unrestricted networking.
map_current_user: boolMap user and group ID 0 in the Linux user namespace to the spawning process’s effective user and group IDs.
Trait Implementations§
Source§impl Clone for LinuxPreparation
impl Clone for LinuxPreparation
Source§fn clone(&self) -> LinuxPreparation
fn clone(&self) -> LinuxPreparation
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 moreSource§impl Debug for LinuxPreparation
impl Debug for LinuxPreparation
Source§impl Default for LinuxPreparation
impl Default for LinuxPreparation
Source§fn default() -> LinuxPreparation
fn default() -> LinuxPreparation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinuxPreparation
impl RefUnwindSafe for LinuxPreparation
impl Send for LinuxPreparation
impl Sync for LinuxPreparation
impl Unpin for LinuxPreparation
impl UnsafeUnpin for LinuxPreparation
impl UnwindSafe for LinuxPreparation
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