From patchwork Mon Apr 12 04:46:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Chun-Yi" X-Patchwork-Id: 420312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60B00C43460 for ; Mon, 12 Apr 2021 04:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2E03B6121E for ; Mon, 12 Apr 2021 04:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbhDLEsA (ORCPT ); Mon, 12 Apr 2021 00:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbhDLEry (ORCPT ); Mon, 12 Apr 2021 00:47:54 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3287C06138D; Sun, 11 Apr 2021 21:47:29 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id m18so3486122plc.13; Sun, 11 Apr 2021 21:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QytjAJtOx4I9dfHfggs5vaGHYdTZvLqDyfwbAQPftuk=; b=GuE+Sl+WS2gMmCgOGuM2dt5e80BA+hqdbLNtiQkE1k68LlVcCmxRzX6thukzSFd2Gi gxy5tyjXQSYcfWztAxjOk1WgmYjw+MCtVXrDakIbfpxCkcBu+dEptJPeXlgGJK/Zd9fC bcdMB1/5rzTXX2HaMIkGNowYwEF/NWSrabPyxwYM4m7lOzZUMQzSxBnmCwlisJvoNQvm 1Xj51/NE9zUlIDKCmUnpw0crphOpzX/jFpd20opQT/U21X0+432dRsSOaT8FyBvGB5Fs +/AKnnUV9K5lounVNtUNxK+7GCFLlRenqD438/OfIz3shmOb8XswXJAgwcDhAYJtgfnO Y9pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QytjAJtOx4I9dfHfggs5vaGHYdTZvLqDyfwbAQPftuk=; b=LSjbkeNt0FbAsFqJJlVBCfffEueQhX83BgAFaXvJq5eSBZT6wxBqh9WBLWNaSRB1G/ sSXW/MBywoRjlLbm75mVG06OZJJnaA533Hv1eEgqreqP4elfvbYUfTbvGSc/UAwk6K9t hkb3zJrFiREoFVTai0spQg6VLRu1AApxOIeR+Ww8SFhQAca9tbBt8VNTQBvZ+E53CVGB x0O48WYVeZI1KT/Fn9CNH+QMPn+IlOFtUpQvbI5aQLDZpAaIPYjZbI4ODXxrEL87VMPX vvkpayfXCnvnIcPnbgqOyXQbw5Ej+HfvX7bPLhu0s1cI4BfjIigKfRnWLlVLqUKYWN5k vtUg== X-Gm-Message-State: AOAM532jTN7DPHCkBtInV2mA/JpYS74mx7vvfHNk2ynT0ZLPHmnC3lqW t/ypGGlH8PWs9No0SedkmaA= X-Google-Smtp-Source: ABdhPJyrmGvNbhPsqGTrMvJ65dXOvQTy2hsfRsofNgfAfPi/k2h3Yvi3Map/UhC8Kq3mM0zUqbq8kQ== X-Received: by 2002:a17:902:aa87:b029:e9:8d9e:6808 with SMTP id d7-20020a170902aa87b02900e98d9e6808mr19763529plr.34.1618202849280; Sun, 11 Apr 2021 21:47:29 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id w16sm8514851pfj.87.2021.04.11.21.47.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Apr 2021 21:47:28 -0700 (PDT) From: "Lee, Chun-Yi" X-Google-Original-From: "Lee, Chun-Yi" To: David Howells Cc: Herbert Xu , "David S . Miller" , Ben Boeckel , Randy Dunlap , Malte Gell , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" Subject: [PATCH v5, 3/4] modsign: Add codeSigning EKU when generating X.509 key generation config Date: Mon, 12 Apr 2021 12:46:59 +0800 Message-Id: <20210412044700.31639-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210412044700.31639-1-jlee@suse.com> References: <20210412044700.31639-1-jlee@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add codeSigning EKU to the X.509 key generation config for the build time autogenerated kernel key. Signed-off-by: "Lee, Chun-Yi" --- certs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/certs/Makefile b/certs/Makefile index f4c25b67aad9..1ef4d6ca43b7 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -88,6 +88,7 @@ $(obj)/x509.genkey: @echo >>$@ "keyUsage=digitalSignature" @echo >>$@ "subjectKeyIdentifier=hash" @echo >>$@ "authorityKeyIdentifier=keyid" + @echo >>$@ "extendedKeyUsage=codeSigning" endif # CONFIG_MODULE_SIG_KEY $(eval $(call config_filename,MODULE_SIG_KEY))