From patchwork Fri Apr 9 02:46:55 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: 418307 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.7 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, URIBL_BLOCKED, 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 E4CBDC433B4 for ; Fri, 9 Apr 2021 02:47:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C4761610F9 for ; Fri, 9 Apr 2021 02:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232995AbhDICr7 (ORCPT ); Thu, 8 Apr 2021 22:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbhDICr6 (ORCPT ); Thu, 8 Apr 2021 22:47:58 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC460C061760; Thu, 8 Apr 2021 19:47:46 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id k23-20020a17090a5917b02901043e35ad4aso4223045pji.3; Thu, 08 Apr 2021 19:47:46 -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=i/K9h4YW6A2fIy2yDkallCCGIuwxoLh0gKtuFLpC7aztwA3x7ZB21w1DxKrD6jKdG8 l0grh/KEjZeIQ4PVNOq8ggxY5A0T9XaUFexKu/Bu9/RGVP9/NNinSL+aqZOhK9fQ2Rki pUXcW0JBt6R/rBrhfnA9IegVrIZPoUQjEA4VrOeWPUUph/rC8+r1i4enamOwUq5JUPJT oH5miDt8DyOAvoeUqn85GRZHLAqT+F4uN80Vr7gLJdD/O+IRMN1/09q+qm4WSo1a83vG PmvUYeFQhCTyYffzdsfbCFDKJVEXy5mjogTspczsLIBlxOp2psv4oTz93lWNoQppIRAD Pf4w== 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=Rh5iiLkWSHQHxFaP9GmTC+5p7M4fTSVI5B7/x6VEiDH4Vf95lEgiHdmpJMOgKLE1VZ 9wjUthAOHcFvnw3hJJHSW0U82Z0ibUBDwKVV564egN3W2OmwD2hrFeZdWVruCmATOy4I q3paPEpAUJDcLcIyP2QbQn3Te2IdfPiEki6ZzMNiLglKOKJuW6od9XdY2ThDP8gK1WbV Ncc1OHJLOmU31p0YEYWxJv9dnOce5c84GS6YTxUSrHTGPYnHi4XnV6R6o/UKoyXdkohS eBPmBB35kKOR7hP07axFz+Zt+2oZtlY8LSyn+Pa8wTC2r8o8a79bCkTIaZ7RC34ZiXSU ltCQ== X-Gm-Message-State: AOAM533T/Plx72ix2Dih+8glGT9H/b+9/i6WoAJMFS47njPbRG6fRYu7 essQsaGTT5Q/HALJocMJz5k= X-Google-Smtp-Source: ABdhPJxUQzK2QE+1orTe/CQsrE3oZzq1vMo6G2M1AeklWhD3XIMPG9QYTFiwk6qPsAtyxRcVzdYnIw== X-Received: by 2002:a17:902:bc48:b029:e9:aebd:b509 with SMTP id t8-20020a170902bc48b02900e9aebdb509mr1199149plz.0.1617936466535; Thu, 08 Apr 2021 19:47:46 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id d26sm665525pfo.162.2021.04.08.19.47.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Apr 2021 19:47:46 -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 3/4] modsign: Add codeSigning EKU when generating X.509 key generation config Date: Fri, 9 Apr 2021 10:46:55 +0800 Message-Id: <20210409024656.8083-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210409024656.8083-1-jlee@suse.com> References: <20210409024656.8083-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))