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

This commit is contained in:
alex committed 2025-11-02 00:27:45 -04:00
1 parent 3b4a66879f
commit 1a6ed0af99
2 files changed
+3 -3

No files matched your search

+1 -1
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,