Revert "KEYS: encrypted: Add check for strsep"
authorMimi Zohar <zohar@linux.ibm.com>
Wed, 24 Jan 2024 19:21:44 +0000 (14:21 -0500)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 24 Jan 2024 21:11:59 +0000 (16:11 -0500)
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>
security/keys/encrypted-keys/encrypted.c

index 76f55dd13cb801078ba71079bf7e1c58eb2ada3b..8af2136069d239129c2994e5ee0f3e9b696ed7ea 100644 (file)
@@ -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: