aboutsummaryrefslogtreecommitdiffstats
path: root/libmount/src
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2025-05-26 18:55:36 +0200
committerKarel Zak <kzak@redhat.com>2025-05-26 18:55:36 +0200
commiteb3003a7dbee376c264ccf0b58e3c25617fd8707 (patch)
treea725147d2a0cd83c0cdfa701575dedcb0d973e83 /libmount/src
parente4f6d45a30f917d50c4176fa593ee82dddf267c5 (diff)
downloadutil-linux-eb3003a7dbee376c264ccf0b58e3c25617fd8707.tar.gz
libmount: (verity) use messages API for important errors
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src')
-rw-r--r--libmount/src/hook_veritydev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmount/src/hook_veritydev.c b/libmount/src/hook_veritydev.c
index 75d5ebe797..801eeaddd1 100644
--- a/libmount/src/hook_veritydev.c
+++ b/libmount/src/hook_veritydev.c
@@ -543,7 +543,8 @@ static int setup_veritydev( struct libmnt_context *cxt,
if (!rc) {
DBG(HOOK, ul_debugobj(hs, "comparing root hash of existing device with %s", root_hash));
if (memcmp(key, root_hash_binary, hash_size)) {
- DBG(HOOK, ul_debugobj(hs, "existing device's hash does not match with %s", root_hash));
+ /* TRANSLATORS: Don't translate "e ". It's a message classifier. */
+ mnt_context_append_mesg(cxt, _("e device's hash does not match with root hash"));
rc = -EINVAL;
goto done;
}
@@ -561,8 +562,9 @@ static int setup_veritydev( struct libmnt_context *cxt,
*/
#ifdef HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY
if (!!hash_sig != !!(crypt_params.flags & CRYPT_VERITY_ROOT_HASH_SIGNATURE)) {
+ /* TRANSLATORS: Don't translate "e ". It's a message classifier. */
+ mnt_context_append_mesg(cxt, _("e device and mount have to either be both opened with signature or both without"));
rc = -EINVAL;
- DBG(HOOK, ul_debugobj(hs, "existing device and new mount have to either be both opened with signature or both without"));
goto done;
}
#endif