From 6278a8655fc3ad9993cfc3e9d2acfe3a688788a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Feb 2024 17:01:01 +0100 Subject: [PATCH] cryptenroll: use correct askpw id for pw request The "id" is used in the askpw protocol to recognize password prompts, in case a service is replying to them and needs some id. Previously we set an incorrect id, the one of cryptsetup. Fix that. (I guess the id is not used much, it comes from a time where we had no credentials, and thus some people wanted to supply passphrases programmatically rather interactively. The usecase is probably gone, but we should still set some valid id I guess.) --- src/cryptenroll/cryptenroll-password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptenroll/cryptenroll-password.c b/src/cryptenroll/cryptenroll-password.c index a9f52bceeb..a9bd8a1dd0 100644 --- a/src/cryptenroll/cryptenroll-password.c +++ b/src/cryptenroll/cryptenroll-password.c @@ -49,7 +49,7 @@ int load_volume_key_password( if (!disk_path) return log_oom(); - id = strjoin("cryptsetup:", disk_path); + id = strjoin("cryptenroll:", disk_path); if (!id) return log_oom(); @@ -122,7 +122,7 @@ int enroll_password( if (!disk_path) return log_oom(); - id = strjoin("cryptsetup:", disk_path); + id = strjoin("cryptenroll-new:", disk_path); if (!id) return log_oom();