mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
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.)
This commit is contained in:
parent
6b3a907764
commit
6278a8655f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user