repart: add basic support for LUKS2 integrity verification
Authenticated disk encryption is experimentally supported by cryptsetup since v2.0.0 and allows for automatic dm-integrity setup for LUKS devices. Add support for the mode to systemd-repart. Currently, the option can only be used in 'online' mode as libcryptsetup does not support creating integrity data without the use of in-kernel dm-integrity infrastructure. Integrity=/IntegrityAlgorithm= are added in the anticipation of other integrity protection options, e.g. enabling dm-integrity for a plain unencrypted partition.
This commit is contained in:
@@ -68,6 +68,7 @@ extern DLSYM_PROTOTYPE(crypt_token_set_external_path);
|
||||
extern DLSYM_PROTOTYPE(crypt_token_status);
|
||||
extern DLSYM_PROTOTYPE(crypt_volume_key_get);
|
||||
extern DLSYM_PROTOTYPE(crypt_volume_key_keyring);
|
||||
extern DLSYM_PROTOTYPE(crypt_wipe);
|
||||
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct crypt_device *, crypt_free, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct crypt_device *, sym_crypt_free, NULL);
|
||||
|
||||
Reference in New Issue
Block a user