summaryrefslogtreecommitdiff
path: root/src/cryptsetup
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2022-12-07 11:23:59 -0500
committerDan Streetman <ddstreet@ieee.org>2023-05-05 18:34:46 -0400
commit2cd9d57548b0dadd52523df486d33aa4cf7c3b84 (patch)
tree9bae43346cdb32bb8e7e0af7e67cd1a3629c3b3a /src/cryptsetup
parente976445d035e21afec2f64a7c825be5df1f664a0 (diff)
downloadsystemd-2cd9d57548b0dadd52523df486d33aa4cf7c3b84.tar.gz
tpm2: move policy building out of policy session creation
This retains the use of policy sessions instead of trial sessions in most cases, based on the code comment that some TPMs do not implement trial sessions correctly. However, it's likely that the issue was not the TPMs, but our code's incorrect use of PolicyPCR inside a trial session; we are not providing expected PCR values with our call to PolicyPCR inside a trial session, but the spec indicates that in a trial session, the TPM *may* return error if the expected PCR value(s) are not provided. That may have been the source of the original confusion about trial sessions. More details: https://github.com/systemd/systemd/pull/26357#pullrequestreview-1409983694 Also, future commits will replace the use of trial sessions with policy calculations, which avoids the problem entirely.
Diffstat (limited to 'src/cryptsetup')
0 files changed, 0 insertions, 0 deletions