mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* boot,gadget: add new `device.TpmLockoutAuthUnder()` and use it
Create a helper in `gadget/device/encrypt.go:TpmLockoutAuthUnder()`
that is used to retrieve the path of the TPM lockout auth data.
This is then used in the boot package and will also be used when
reseting the DA lockout counter.
This is split out of PR#11935.
* boot,device: extract SealedKey helpers from boot to device
The DA lockout reset code will need to be able to read the
`SealedKeysMethod` so this commit moves the code to read/write
the sealing methods from `boot` to `gadget/device` (just like
we did for e.g. `{Has,Read}EncryptionMarkers`).
This is split out of PR #11935 and build on top of PR #11946
* boot: revert use of device.TpmLockoutAuthUnder() in tests
* gadget/device: rename tests as suggested by Alberto (thanks!)