pub struct PermissiveJailWarden {
protection_type: ProtectionType,
guest_memory: GuestMemory,
}Expand description
PermissiveJailWarden act as a JailWarden, but does not jail the device.
PermissiveJailWarden is used when disable_sandbox flag is selected from crosvm CLI.
Fields§
§protection_type: ProtectionType§guest_memory: GuestMemoryImplementations§
Source§impl PermissiveJailWarden
impl PermissiveJailWarden
Sourcepub fn new(
guest_memory: GuestMemory,
config: &Config,
_swap_device_helper: Option<SwapDeviceHelper>,
) -> Result<Self>
pub fn new( guest_memory: GuestMemory, config: &Config, _swap_device_helper: Option<SwapDeviceHelper>, ) -> Result<Self>
Constructor of PermissiveJailWarden
Trait Implementations§
Source§impl JailWarden for PermissiveJailWarden
impl JailWarden for PermissiveJailWarden
Source§fn make_proxy_device(
&self,
resource_carrier: ResourceCarrier,
) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
fn make_proxy_device( &self, resource_carrier: ResourceCarrier, ) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
Make a PCI device, jail it, and return the proxy to the jailed device as a BusDevice.
Auto Trait Implementations§
impl Freeze for PermissiveJailWarden
impl RefUnwindSafe for PermissiveJailWarden
impl Send for PermissiveJailWarden
impl Sync for PermissiveJailWarden
impl Unpin for PermissiveJailWarden
impl UnwindSafe for PermissiveJailWarden
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