Detect support for BitLocker EBOIV and Elephant diffuser.

If kernel is missing support, print a more friendly error.
This commit is contained in:
Milan Broz
2019-12-30 20:52:36 +01:00
parent 3c189b4183
commit eee46ef2f4
3 changed files with 20 additions and 7 deletions

View File

@@ -169,6 +169,12 @@ static void _dm_set_crypt_compat(struct crypt_device *cd,
_dm_flags |= DM_CAPI_STRING_SUPPORTED;
}
if (_dm_satisfies_version(1, 19, 0, crypt_maj, crypt_min, crypt_patch))
_dm_flags |= DM_BITLK_EBOIV_SUPPORTED;
if (_dm_satisfies_version(1, 20, 0, crypt_maj, crypt_min, crypt_patch))
_dm_flags |= DM_BITLK_ELEPHANT_SUPPORTED;
_dm_crypt_checked = true;
}