Revert "KEYS: encrypted: Add check for strsep"

commit 1ed4b563100230ea68821a2b25a3d9f25388a3e6 upstream.

This reverts commit b4af096b5df5dd131ab796c79cedc7069d8f4882.

New encrypted keys are created either from kernel-generated random
numbers or user-provided decrypted data.  Revert the change requiring
user-provided decrypted data.

Reported-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mimi Zohar 2024-01-24 14:21:44 -05:00 committed by Greg Kroah-Hartman
parent b1cc57f976
commit 17062a768c
1 changed files with 0 additions and 4 deletions

View File

@ -237,10 +237,6 @@ static int datablob_parse(char *datablob, const char **format,
break; break;
} }
*decrypted_data = strsep(&datablob, " \t"); *decrypted_data = strsep(&datablob, " \t");
if (!*decrypted_data) {
pr_info("encrypted_key: decrypted_data is missing\n");
break;
}
ret = 0; ret = 0;
break; break;
case Opt_load: case Opt_load: