From patchwork Tue Mar 23 03:55:20 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: 407047 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=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 17DE5C433E0 for ; Tue, 23 Mar 2021 03:57:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5A21619AD for ; Tue, 23 Mar 2021 03:57:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbhCWD4d (ORCPT ); Mon, 22 Mar 2021 23:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbhCWD4B (ORCPT ); Mon, 22 Mar 2021 23:56:01 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645B7C061574; Mon, 22 Mar 2021 20:56:00 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id m7so10382794pgj.8; Mon, 22 Mar 2021 20:56:00 -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=lx9thgP6A3ioWxhBGad3TsmfVCj/CEm38s8KDe6j9ERkfI6WyXkisIvBorluUgzQeo futndHh92nTdosWgeacAjHNj1iTXitGIbvqmlGLwb9iabbuyD04hbWdnNBqp51VqJBsC RPl02or6ymxgd5zIzuzetVt446IbNqLSYF16qSWP0ZTNMjYFAywnI3P9KSsSPoftyphp Z7dMqQdBPqR49/+4Cfa3BIJUfuWu07maN/WUycgznoysPz01VsEdaMHVODjFGuyShPXB CrcFCzy5OITlVdhu/0rzmLcBCYu908ZebpUQk2du/9JKB/zdPRWqVO7lX42ahSedNMYX jpoQ== 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=fT9nKOnDTS4rLgPezQqVxgvq1vW5eKVCYpSssbFmkXDUxbG5a3yT4ZCa/ecf6FTP2g 35mOstL97hv3lH9jndNYmvhoSvU4I3MzdIFBEWK1/sNd5ygjf8gTXsskxzdP58QnilGj FepCropzc/QvOONkib05q5u65G4gl1BeZRAx1+CeGnqSIp6ErpcBLagE2Lck1ecDQzLU koxtW01v0I5pwMe3m8RHGdPM4aosRaxSn1sZg870hVAD0zmoFH/OSawiamKOkeYF7WQy aePf4zShBIy0cybmfy68MeTVEXSvy4gNaWRNxgUV8Ms3AaqmWaoDS86Qa2+mLtJzyJxp Imjg== X-Gm-Message-State: AOAM530jtO2glic1b5yONOdVk/kET8PhXT9YTIOIcxFqzjM/dMUC/NP4 hgTsfzAzeJm4UEZdb23tPWw= X-Google-Smtp-Source: ABdhPJzlE5QixRFbHWxtBxVygZxYyuIdW208WvMLMiqYY6O27CeLlTz75CIc6X32y40nUW2j1NKyYA== X-Received: by 2002:a05:6a00:168a:b029:210:cdd5:c792 with SMTP id k10-20020a056a00168ab0290210cdd5c792mr2601708pfc.44.1616471760030; Mon, 22 Mar 2021 20:56:00 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id z22sm14415630pfa.41.2021.03.22.20.55.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Mar 2021 20:55:59 -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: Tue, 23 Mar 2021 11:55:20 +0800 Message-Id: <20210323035521.5843-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210323035521.5843-1-jlee@suse.com> References: <20210323035521.5843-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))