[systemd-devel] [PATCH] cryptsetup: copy value, not key for (rd.)luks.key

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Apr 19 20:41:51 PDT 2014


On Sat, Apr 19, 2014 at 12:56:45PM -0600, Matthew Monaco wrote:
> ---
Applied, thanks for the reminder.

> Semi-shameless bump, but new email address would be preferred

>> Really? No one has used this?
Either that, or their password starts with luks.key= or rd.luks.key=.

Zbyszek

> 
>  src/cryptsetup/cryptsetup-generator.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
> index 75d56dd..f4eeb2a 100644
> --- a/src/cryptsetup/cryptsetup-generator.c
> +++ b/src/cryptsetup/cryptsetup-generator.c
> @@ -287,7 +287,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
>          } else if (STR_IN_SET(key, "luks.key", "rd.luks.key") && value) {
>  
>                  free(arg_keyfile);
> -                arg_keyfile = strdup(key);
> +                arg_keyfile = strdup(value);
>                  if (!arg_keyfile)
>                          return log_oom();


More information about the systemd-devel mailing list