forked from tpm2-software/tpm2-tss
-
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.
FAPI: Fix the authorization of hierarchy objects.
The default policy "policy secret" for the endorsement key is defined for the endorsement hierarchy. The corresponding object had to be searched in the keystore during policy execution. This search did not work, due to various bugs. * A erroneous cleanup of the EK was executed where the policy was deleted. * The name needed for the search in the keystore was not stored in the hierarchy object. * The esys handle stored in the hierarchy object was not correct. To ensure compatibility with existing system keystores the initialization of the hierarchy objects was fixed as follows: * The initialization of the hierarchy object was moved to to object deserialization. * Depending on the pathname the esys handle in the hierarchy initialized. * The name of the hierarchy object was computed. * The object needed for authorization during policy execution was initialized with the hierarchy object. * The searching of objects in the keystore was fixed. * Objects to be freed in Fapi_Import were initialzed with NULL. The tests were adapted: * The linking of the unit test for FAPI deserialization had to be adapted. * An integration test where a key in the endorsement hierarchy was used for signing was added. * PCR 16 was not reset int all tests expecting pcr 16 equal 0. Fixes tpm2-software#2253 Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
- Loading branch information
1 parent
724ca6a
commit 7958fad
Showing
13 changed files
with
257 additions
and
72 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
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
Oops, something went wrong.