Merge "keystore: log receipt of auth tokens" am: cdeb7302af
Original change: https://android-review.googlesource.com/c/platform/system/security/+/2628119
Change-Id: I606835e31c4c2c23101188442bcf5cc543f75428
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/keystore2/src/authorization.rs b/keystore2/src/authorization.rs
index 4f2c7bd..de7f19a 100644
--- a/keystore2/src/authorization.rs
+++ b/keystore2/src/authorization.rs
@@ -128,6 +128,15 @@
// Check keystore permission.
check_keystore_permission(KeystorePerm::AddAuth).context(ks_err!())?;
+ log::info!(
+ "add_auth_token(challenge={}, userId={}, authId={}, authType={:#x}, timestamp={}ms)",
+ auth_token.challenge,
+ auth_token.userId,
+ auth_token.authenticatorId,
+ auth_token.authenticatorType.0,
+ auth_token.timestamp.milliSeconds,
+ );
+
ENFORCEMENTS.add_auth_token(auth_token.clone());
Ok(())
}