From patchwork Tue Mar 9 09:10:43 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: 396174 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 104E0C43333 for ; Tue, 9 Mar 2021 09:12:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCF646513E for ; Tue, 9 Mar 2021 09:12:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbhCIJLz (ORCPT ); Tue, 9 Mar 2021 04:11:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhCIJLa (ORCPT ); Tue, 9 Mar 2021 04:11:30 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0B3C06174A; Tue, 9 Mar 2021 01:11:30 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id t85so3768681pfc.13; Tue, 09 Mar 2021 01:11:30 -0800 (PST) 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=nSIvOGb6tSCjl8BQSt7eWgl//EkVoKhdJMfrQGwR0QS5gAAbCkuuyhV1Mwe/g+BY/8 Iy8pUA604rKGXX8TKh6nEm/+pStveBGKpMCxdqpHd/fJQVCRrjG7ODylW1bGm7pHnMfX ysZZWqZ1qNtW+zs8Icm/ndLnizaH6hBXCSX84U2UiNG6unaF8tZ4hFC+SO5Vv2EoITEX M6uMZcR6TKSahCjE/K/t8jbuDO81eWrzv9dfbRCBkp6Q1gi2dWv4f/sQfmbQgEH7Z+s7 VWwDoB8RYR27rqoV/NIvmDrxEi5IWxNVbWpCrwM2UyrIPhech3r/zP4Deaiin5TzBaE9 rmxQ== 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=s+pIj7jPYnj8XVC2tj/3h1k7TaCzDvjbjxYjDMAJL3kfS1sH2+3H4xL0i5bOAWmB3x 1j1FkEh1tvJ1Ce4sNyHjBVH1/7KrH0PmpyEXgMnrZum68hS/Muo+ZPeZ7bNPpobeYrdj Mbf0xtpRcgLQZT6i6FsNHvx6IEmTx8ed83XH2nMprAoBrYtijOkFBn1Eog4mm4NJ/opR igNTbzUFvdARA+Sz2EUZvVqmVHFwhh1lkD4axj1XDD9o/d5a4LsMZTcSNNS/WpeWxkiu YCqiqT7k8T+ft0hEPbH23vipuGfA7i4YLDckGE3A0LwXhcBtph/P4S0XiKGIIa6HDjGk CDig== X-Gm-Message-State: AOAM531O9b3CkVKE9gECK8SNJXEo9W3D1FVtIQUku5rerKKBfEoHOfmA BRyVEatfV7yS4JWkYulPVEw= X-Google-Smtp-Source: ABdhPJy3C0f3UgsS7MmGuwLZomizZ0NzjpPvyjFQcXLxJQHl/Tgb5Ixaf18ACIDmJOL6N4qCbvrIsA== X-Received: by 2002:a63:5b0e:: with SMTP id p14mr23981985pgb.110.1615281089934; Tue, 09 Mar 2021 01:11:29 -0800 (PST) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id js16sm2094860pjb.21.2021.03.09.01.11.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Mar 2021 01:11:29 -0800 (PST) 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: Tue, 9 Mar 2021 17:10:43 +0800 Message-Id: <20210309091044.2298-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210309091044.2298-1-jlee@suse.com> References: <20210309091044.2298-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))