fix(shim): avoid masking the underlying error when shim verify fails

This commit is contained in:
2025-11-02 00:27:45 -04:00
parent 3b4a66879f
commit 1a6ed0af99
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ impl SecurityHook {
match ShimSupport::verify(input) {
Ok(output) => match output {
// If the verification failed, return the access-denied status.
ShimVerificationOutput::VerificationFailed => Status::ACCESS_DENIED,
ShimVerificationOutput::VerificationFailed(status) => status,
// If the verification succeeded, return the success status.
ShimVerificationOutput::VerifiedDataNotLoaded => Status::SUCCESS,
ShimVerificationOutput::VerifiedDataBuffer(_) => Status::SUCCESS,