-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luks-seal: tpm2_evictcontrol fails if there is nothing to evict #11
Comments
Have you ever sealed a secret into the TPM? If this is your first time ever doing so, I think the script is assuming there is one to evict and that is causing a problem if there isn't one already there... Can you try making this change:
|
TPM was cleared before this. Using warn instead of die helped and I was able to finish the process successfully, thanks! |
It might be safe to change the |
This is indeed strange and the TPM2 Spec is a horror show, so @osresearch I know how you feel. The only thing that makes impression on me is the fact evictcontrol is called to eveict an object at $HANDLE, but on the second call no particular $HANDLE is specified for installing your secret. This means that evictcontrol would take the first empty handle. But there is no guarantee that wil be exactly $HANDLE cleared in the first step, so I am bit confused. Is this intentional and why? @v3rm0n could you please run |
It's the hoped-for behavior, based on what I observed on my thinkpad since |
@osresearch yes, unless they changed its parameters, again. This was mentioned in our call this week. Params on tpm2-tools change so often it is almost hell. Anyways, you should be able to pass -c for context and and then the
I am seeing it is still true in the latest man page, so I hope it must be true - https://github.com/tpm2-software/tpm2-tools/blob/master/man/tpm2_evictcontrol.1.md Then, could you please tell me where you initialize |
|
The LUKS sealed keys are no longer stored in the TPM, but in the initrd instead. They do not change between signed kernels as part of #57, which eliminates the need for the handle tracking. |
Not sure what to do about this:
The text was updated successfully, but these errors were encountered: