pub enum Source {
DevCrash,
DevMem,
ProcKcore,
Raw(PathBuf),
}Variants§
DevCrash
Provides a read-only view of physical memory. Access to memory using this device must be paged aligned and read one page at a time.
On RHEL based distributions, this device is frequently provided by
default. A loadable kernel module version is available as part of
the Linux utility crash:
https://github.com/crash-utility/crash/tree/master/memory_driver
DevMem
Provides a read-write view of physical memory, though AVML opens it in a
read-only fashion. Access to to memory using this device can be
disabled using the kernel configuration options CONFIG_STRICT_DEVMEM
or CONFIG_IO_STRICT_DEVMEM.
With CONFIG_STRICT_DEVMEM, only the first 1MB of memory can be
accessed.
ProcKcore
Provides a virtual ELF coredump of kernel memory. This can be used to access physical memory.
If LOCKDOWN_KCORE is set in the kernel, then /proc/kcore may exist but
is either inaccessible or doesn’t allow access to all of the kernel
memory.
Raw(PathBuf)
User-specified path to a raw memory file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.