From patchwork Fri May 21 09:42:19 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: 445983 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=ham 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 32289C43462 for ; Fri, 21 May 2021 09:43:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 179F4613CE for ; Fri, 21 May 2021 09:43:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237022AbhEUJoz (ORCPT ); Fri, 21 May 2021 05:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237035AbhEUJoq (ORCPT ); Fri, 21 May 2021 05:44:46 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C48C061763; Fri, 21 May 2021 02:43:22 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id s19so12264178pfe.8; Fri, 21 May 2021 02:43:22 -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=3fW/X6CDJun4GeFDv0qlSVaN/oKNmuZ2pQXfLhoe16g=; b=gD3+4cZ8CRKAcMPUBXx20jePFWmgOvIuBv3E0pzISRwlYlnNIDp2M2qEIsuTzwKFzo LeSClkpVUCHvB46vWLZMDGrkAT9TrECfzr8YTTZTqWJH/6evdKC0rxBr3Mp1EUfuiT9t f5ru9/mSezvHZdcIqJ7gotVvPKHRQfCxjwidv2AAZ2ERInoWuSpNNSIIdNPxRAab4b7O n1hx6MhJ4pvJUaR/lXUVXNG1LDQPt9V9IR9IJWBdeP2pkV6S7RspRlkv5uM8tSMrhF+d 2AEHEM7n43dBi+y4lAyTp5sxJIuG9taVAC+bPuo3LLGgQTZmg/LAuy2Y5LKN9xR1oXou fI5A== 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=3fW/X6CDJun4GeFDv0qlSVaN/oKNmuZ2pQXfLhoe16g=; b=bGwncF+9f3T43MYGSLYG/y3UyWgEvf3Y8QwxoG9Wwomo2QxY3PJX2ipbytTAKBrJfg rgI3JW8We8jkt7YIWd+vKkxF9Kwe7Xdua8nXhEYTL9fCcUWsr40OJqws6rn2jGhJwbjt qiAqrhMNLcx88DAdcAyRCpgdcrXzPc6xjK60TCl0DxgM0oucDfE6FBFkoiiu+zkyBrx9 HmSkKa6jejLSnSm0ST6HWG0qU/A97AKbJ1gLjo0qpqZpc++i6yrAI4AN0aKHd4BZMC9r o3shLBFrght/WoKAbJEpqc8bcZl9xZa9CQM9HSRnC7xLFXMQM+x9RodZgbFeEAzxDXGP GKyQ== X-Gm-Message-State: AOAM531FboH4ggjVNsx1nMaRDoFC+qeXwhE1nzMJd6pntoF3xpFnW+g7 fZjscJgJ+1+Yxhf5gNSGIiQ= X-Google-Smtp-Source: ABdhPJwXtId1F8P4UAPWrmS7KHVQHIYF8BWeqgqGYmJa5CUD+4uNQtGHH4vO8PNcn2ldWPrPev8cEQ== X-Received: by 2002:aa7:8d46:0:b029:2de:75aa:1964 with SMTP id s6-20020aa78d460000b02902de75aa1964mr9363367pfe.61.1621590201641; Fri, 21 May 2021 02:43:21 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id g202sm4091931pfb.54.2021.05.21.02.43.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 May 2021 02:43:21 -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 , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" Subject: [PATCH v7, 3/4] modsign: Add codeSigning EKU when generating X.509 key generation config Date: Fri, 21 May 2021 17:42:19 +0800 Message-Id: <20210521094220.1238-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210521094220.1238-1-jlee@suse.com> References: <20210521094220.1238-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 359239a0ee9e..278e83d23aeb 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -99,6 +99,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))