Skip to content
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

tpm2_pcrallocate seems to not be able to configure pcrs on a booted system #3433

Open
user7z opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@user7z
Copy link

user7z commented Nov 13, 2024

tpm2_getcap pcrs output :
selected-pcrs:

  • sha1: [ ]
  • sha256: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ]
  • sha384: [ ]
  • sm3_256: [ ]
    i want to reallocate them to sha384 with :
    tpm2_pcrallocate -P sha384:all , it gives those errors :
    WARNING:esys:src/tss2-esys/api/Esys_PCR_Allocate.c:313:Esys_PCR_Allocate_Finish() Received TPM Error
    ERROR:esys:src/tss2-esys/api/Esys_PCR_Allocate.c:110:Esys_PCR_Allocate() Esys Finish ErrorCode (0x000009a2)
    ERROR: Could not allocate PCRs.
    ERROR: Esys_PCR_Allocate(0x9A2) - tpm:session(1):authorization failure without DA implications
    ERROR: Failed TPM2_CC_ECDH_ZGen
    ERROR: Unable to run tpm2_pcrallocate

i searched a bit and i read this, it says that :
This can only be changed through system firmware – the operation done by tpm2_pcrallocate requires "platform" authorization, which means it can only be performed by system firmware and not by the OS.

so isnt there a way to do it in the OS ? really ? , & if true , could it be done if this utilitty packaged as efi executable ? or the initialization is done already by the firmware at every boot , & modifying the pcrs would abslotlly require the firmware intervention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant