Repository navigation
v0.8.0
Changes
New Features
unseal: Retry `tpm2_unseal` when a PCR changes during unseal 7031d4e
- Add
Retry<T>withAttempttrait andRetryOptions(5 attempts, 50ms initial delay, 2.0 multiplier)- Attach
attemptsandis_retryableto the final error- Split
UnsealErrorintoPcrChangedandFailed; onlyPcrChangedis retryable- Fix code parsing matching
Esys_Unseal()on an earlier stderr line and returning an empty code- Remove the retry hint now that the retry is automatic
- Resolve
Retry<dyn Unseal>inGetKeyAdaptervia DICloses: #12
Bug Fixes
unseal: Attach error code and PCR retry hint to errors f867cb3
- Parse the
Esys_Unsealreturn code from stderr and attach it ascode- Attach a retry hint when the code is
TPM_RC_PCR_CHANGED(0x128)
service: Match SELinux rules under both `/home` and `/var/home` a8594a9
- Write file specs as
/(var/)?home/…so one rule survives either direction of the Fedora Atomic/var/homeequivalency- Drop
BREW_PREFIX_REAL;readlink -fproduced the form a later policy update aliased away, leaving rules that matched nothing whilerestoreconstampeddefault_tback on every service start- Drop the
-a … 2>/dev/null || -mfallback sosemanageerrors surface;semanagealready falls back to modify and exits 0- Correct
user_home_tto the observeddefault_t
Dependencies
Upgrade dependencies and remove unused
serial_test086a75c
Tests
Attach path to `TempDirectory::create` errors 042fd82
- Return
Report<TempDirectoryError>NOTio::Errorso failures name the directoryOs { code: 13, kind: PermissionDenied, message: "Permission denied" }gave the cause but never the path