0001-common-secret.c-fix-key-parsing-when-doing-a-remount.patch
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) { |