Automated decryption framework
Go to file
Sergio Correia e9acb551d3 Handle case where we try to use a partially used luksmeta slot
In some situations, especially with older versions of clevis, we can end
up with a partially used luksmeta slot.

We can identify such slots because they will be marked as inactive, yet
they will contain the clevis UUID, "cb6e8904-81ff-40da-a84a-07ab9ab5715e".

When this situation happens, we have cryptsetup and luksmeta slots "out
of sync", and since we currently have cryptsetup choose the slot, we may
end up trying to use such a partially used slot, which in turn will fail
because luksmeta will not be able to save data to it.

We handle this case by wiping the partially used slot, if we identify
the situation will arise.

Tests also added to verify this case is handled properly.

Fixes: #70
2019-12-19 09:43:27 -03:00
.gitignore Update to v11 2018-08-13 23:39:02 -04:00
0001-Backport-upstream-tests-and-fixes.patch Backport upstream tests and fixes 2019-12-05 08:06:14 -03:00
0002-Disabling-LUKS2-tests-for-now.patch Disable LUKS2 tests for now 2019-12-05 08:50:32 -03:00
0003-Handle-case-where-we-try-to-use-a-partially-used-luk.patch Handle case where we try to use a partially used luksmeta slot 2019-12-19 09:43:27 -03:00
Add-device-TCTI-library-to-the-initramfs.patch A couple of fixes for v11 2018-11-09 12:35:10 +01:00
clevis-encrypt-tpm2-fix-TPM-object-attributes.patch Add support for tpm2-tools 4.0 2019-09-06 17:34:52 +02:00
clevis-pin-tpm2-module-setup.sh-test-for-required-bi.patch Add support for tpm2-tools 4.0 2019-09-06 17:34:52 +02:00
clevis.spec Handle case where we try to use a partially used luksmeta slot 2019-12-19 09:43:27 -03:00
Delete-remaining-references-to-the-removed-http-pin.patch A couple of fixes for v11 2018-11-09 12:35:10 +01:00
Install-cryptsetup-and-tpm2_pcrlist-in-the-initramfs.patch A couple of fixes for v11 2018-11-09 12:35:10 +01:00
pins-tpm2-add-support-for-tpm2-tools-4.X.patch Add support for tpm2-tools 4.0 2019-09-06 17:34:52 +02:00
sources Update to v11 2018-08-13 23:39:02 -04:00