From: Mimi Zohar Date: Wed, 24 Jan 2024 19:21:44 +0000 (-0500) Subject: Revert "KEYS: encrypted: Add check for strsep" X-Git-Tag: v6.6.14~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cb583c4e18b60806534fd5e7ec0728888fb069e;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Mimi Zohar Signed-off-by: Greg Kroah-Hartman --- diff --git a/security/keys/encrypted-keys/encrypted.c b/security/keys/encrypted-keys/encrypted.c index fea7e09..1e31398 100644 --- a/security/keys/encrypted-keys/encrypted.c +++ b/security/keys/encrypted-keys/encrypted.c @@ -237,10 +237,6 @@ static int datablob_parse(char *datablob, const char **format, break; } *decrypted_data = strsep(&datablob, " \t"); - if (!*decrypted_data) { - pr_info("encrypted_key: decrypted_data is missing\n"); - break; - } ret = 0; break; case Opt_load: