From patchwork Wed Jul 13 04:24:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Chun-Yi" X-Patchwork-Id: 590120 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2A0FC433EF for ; Wed, 13 Jul 2022 04:28:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbiGME2T (ORCPT ); Wed, 13 Jul 2022 00:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbiGME2R (ORCPT ); Wed, 13 Jul 2022 00:28:17 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5527E5C9F4; Tue, 12 Jul 2022 21:28:16 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id a15so9184406pfv.13; Tue, 12 Jul 2022 21:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v+sMBqp6ooJWJMiKxkcuWRrYdEMc2s2mHBQ5ff60zrg=; b=YrfCRc/lr//lkQWdNidRTq+YhnzWWh9PpK/45rbwYG36xJ7RSCbTW9P6+Kddbkdpsz RJhiuKedGrAJxV1qQ/uA58Ki6hjhJc/YPa6kx3Qcx2jKKOkjG+zu4vazZ0F1dpAlkIDG dTWODtRt0dEJ2s32Rol2siS2/uVuhyEuZ+jZhX0bKKmUjgrc5lrg9dhn8JH6NCrlOMV5 cX3FsMIZJp2ieP0Bb8U2zPpxfYpdkzSn/OjDwQaxepSp8a5IRT7X0yKsKMxODiorIWkr v/MEOK6eUJXNSHP8F0nAwQsVLVttcHu5gnb5vAbupF/yjPAvAc54wPTbVugQsE3pAGXG 62eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v+sMBqp6ooJWJMiKxkcuWRrYdEMc2s2mHBQ5ff60zrg=; b=L5BBqC9YjQmFVKhme2grD+hxzACjGtHAScJxLpFnxN4nwaIYhGvZZUepcoq2s1jCKx p2KCXp05MRa40ICojlZR9lZg71Mi6/UVlpCNwxJcLCb2/xds8sSQAD5GeJER/lfO2ZRl s2B2xn4L+Ctjm2NhpZvRreZif2jCmMKkpVcgk4F+uQWC0rfVgOuEeWjYlh2ze45hkqW1 XeiKd8ufQCF/9rGPvRuy5fVZdZz8Kh+G4Q3kTqzJpm1rFDwec8zwz4vxV0AT11Skeqm3 ozBK5NueUvp/HKtRCV/qljG41e5BH/6pDsi2qhh07LyntHAg2wIJxha+cgl2VLRY2MEq WsvQ== X-Gm-Message-State: AJIora8Py0wE5eYrU8OP9MwyY8YlcD/xg87xzpvvCsY+9DKqIZ92+v12 0G8984TyiJLp6ZmJYM1QxkQ= X-Google-Smtp-Source: AGRyM1vZM5WujfLKVRsQYiDFz9xZS0FV6nfL+YC4CbxI9VzqIuaLn4J7RReRmF2ujbV0MZXctuZXzg== X-Received: by 2002:a63:4558:0:b0:411:442a:b740 with SMTP id u24-20020a634558000000b00411442ab740mr1352262pgk.540.1657686495918; Tue, 12 Jul 2022 21:28:15 -0700 (PDT) Received: from linux-l9pv.suse (123-194-153-158.dynamic.kbronet.com.tw. [123.194.153.158]) by smtp.gmail.com with ESMTPSA id e7-20020a17090301c700b0016c4f006603sm4732513plh.54.2022.07.12.21.28.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2022 21:28:15 -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 , Varad Gautam , Jarkko Sakkinen , Mimi Zohar , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" Subject: [PATCH v9,3/4] modsign: Add codeSigning EKU to the default Date: Wed, 13 Jul 2022 12:24:20 +0800 Message-Id: <20220713042421.21680-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20220713042421.21680-1-jlee@suse.com> References: <20220713042421.21680-1-jlee@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add codeSigning EKU to the default X.509 key generation config for the build time autogenerated kernel key. Signed-off-by: "Lee, Chun-Yi" --- certs/default_x509.genkey | 1 + 1 file changed, 1 insertion(+) diff --git a/certs/default_x509.genkey b/certs/default_x509.genkey index d4c6628cb8e5..53be501ce57a 100644 --- a/certs/default_x509.genkey +++ b/certs/default_x509.genkey @@ -15,3 +15,4 @@ basicConstraints=critical,CA:FALSE keyUsage=digitalSignature subjectKeyIdentifier=hash authorityKeyIdentifier=keyid +extendedKeyUsage=codeSigning