forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AttestationFlow use preparation check consistent with chrome os.
Previously we only check if attestation service is prepared with default ACA. We change to the check against either default or test ACA because this is how cryptohome implements TpmIsAttestationPrepared. Also, we explicitly check the status code returned by attestation service to make the problem flow more robust for future-proof reason. Note that this change doesn't introduce any effective behavioral change; this is because attesataion service always prepares enrollment with both ACA types, and the enrollment preparation table is always empty if the returned status is bad. Admittedly it will become a waste CL right after we switch to platform side attestation flow, which we are aiming at in the near future, but it might be still worth doing it for better history reading in the future because only checking default ACA is confusing. BUG=b:158955123 TEST=build ok. Change-Id: I341c8fc68b476805d700b97cd2fb6afadd30ffba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2466003 Commit-Queue: Leo Lai <cylai@google.com> Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#818889}
- Loading branch information
Leo Lai
authored and
Commit Bot
committed
Oct 20, 2020
1 parent
87f9263
commit 0332c8a
Showing
6 changed files
with
98 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters