mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-23 18:33:39 +00:00
Set flags 'fixedtpm|fixedparent|adminwithpolicy'. Plain password auth is no longer allowed. For objects sealed with a password, the password is part of the auth policy, so both PCRs and password must be satisfied to unseal. Tested by manually attempting to unseal disk unlock key with password: tpm2 unseal -c 0x81000003 -p "<password>" This now correctly returns an error indicating this auth method is not allowed. Relative to the documented default flags for tpm2_create: * sign, decrypt: Not applicable to a sealed object, tpm2_create automatically removed these from the defaults. * fixedtpm, fixedparent: Kept * sensitivedataorigin: Not applicable an object where the sensitive data is not generated by the TPM. * userwithauth: Removed this, "user" actions must satisfy auth policy. * adminwithpolicy: Added this, "admin" actions must satisfy auth policy. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>