Struct kernel::process_checker::ProcessCheckerMachine
source · pub struct ProcessCheckerMachine { /* private fields */ }
Expand description
Checks the footers for a ProcessBinary
and decides whether to continue
loading the process based on the checking policy in checker
.
Implementations§
source§impl ProcessCheckerMachine
impl ProcessCheckerMachine
pub fn new(policy: &'static dyn AppCredentialsPolicy<'static>) -> Self
pub fn set_client(&self, client: &'static dyn ProcessCheckerMachineClient)
pub fn set_policy(&self, policy: &'static dyn AppCredentialsPolicy<'static>)
sourcepub fn check(
&self,
process_binary: ProcessBinary,
) -> Result<(), ProcessCheckError>
pub fn check( &self, process_binary: ProcessBinary, ) -> Result<(), ProcessCheckError>
Check this process_binary
to see if its credentials are valid.
This must be called from a interrupt callback chain.
Trait Implementations§
source§impl AppCredentialsPolicyClient<'static> for ProcessCheckerMachine
impl AppCredentialsPolicyClient<'static> for ProcessCheckerMachine
source§fn check_done(
&self,
result: Result<CheckResult, ErrorCode>,
credentials: TbfFooterV2Credentials,
_integrity_region: &'static [u8],
)
fn check_done( &self, result: Result<CheckResult, ErrorCode>, credentials: TbfFooterV2Credentials, _integrity_region: &'static [u8], )
The check for a particular credential is complete. Result of the check
is in
result
.Auto Trait Implementations§
impl !Freeze for ProcessCheckerMachine
impl !RefUnwindSafe for ProcessCheckerMachine
impl !Send for ProcessCheckerMachine
impl !Sync for ProcessCheckerMachine
impl Unpin for ProcessCheckerMachine
impl !UnwindSafe for ProcessCheckerMachine
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