]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: the libcryptsetup code for Verity crypt_device objects too 19768/head
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Jun 2021 11:19:23 +0000 (13:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Jun 2021 11:33:13 +0000 (13:33 +0200)
Across the codebase we are pretty good at setting the per-crypt_device
log functions once we allocated the object. But we forgot one case. Fix
that.

src/shared/dissect-image.c

index a8402c1dcd1a3d07ee7ee54519bfe9eb0f5f85b6..476e514c52e67fef0693f3f8fbb13903635b9c3c 100644 (file)
@@ -1926,6 +1926,8 @@ static int verity_can_reuse(
         if (r < 0)
                 return log_debug_errno(r, "Error opening verity device, crypt_init_by_name failed: %m");
 
+        cryptsetup_enable_logging(cd);
+
         r = sym_crypt_get_verity_info(cd, &crypt_params);
         if (r < 0)
                 return log_debug_errno(r, "Error opening verity device, crypt_get_verity_info failed: %m");