Project

General

Profile

0001-common-secret.c-fix-key-parsing-when-doing-a-remount.patch

Luis Henriques, 05/16/2019 11:05 AM

Download (1.17 KB)

View differences:

src/common/secret.c
101 101

  
102 102
  option[olen] = '\0';
103 103

  
104

  
105
  if (secret) {
104
  /* when parsing kernel options (-o remount) we get '<hidden>' as the secret */
105
  if (secret && strncmp(secret, "<hidden>", 8)) {
106 106
    ret = set_kernel_secret(secret, key_name);
107 107
    if (ret < 0) {
108 108
      if (ret == -ENODEV || ret == -ENOSYS) {