fix(shim): revert nspace attestation key lookup
Reverts17c6312. The KEY_ID-domain alias-null branch targeted duck-detector's timing-side-channel WARN, but the WARN persisted in subsequent testing and the combined fix attempts pushed the Tamper score from 4 to 14 with a new key-tamper detection on a second detector. Roll back to the2e55d56baseline to investigate from a clean state.
This commit is contained in:
+1
-2
@@ -495,8 +495,7 @@ class KeyMintSecurityLevelInterceptor(
|
||||
ConfigurationManager.shouldGenerate(callingUid) ||
|
||||
(ConfigurationManager.shouldPatch(callingUid) && isAttestKeyRequest) ||
|
||||
(attestationKey != null &&
|
||||
(attestationKey.alias?.let { isAttestationKey(KeyIdentifier(callingUid, it)) }
|
||||
?: attestationKeys.any { kid -> kid.uid == callingUid && generatedKeys[kid]?.nspace == attestationKey.nspace }))
|
||||
isAttestationKey(KeyIdentifier(callingUid, attestationKey.alias)))
|
||||
|
||||
val isAuto = ConfigurationManager.isAutoMode(callingUid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user