From patchwork Wed Nov 25 07:26:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lee, Chun-Yi" X-Patchwork-Id: 332472 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 AA623C64E8A for ; Wed, 25 Nov 2020 07:27:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4C5AE20B1F for ; Wed, 25 Nov 2020 07:27:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AGPccole" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727763AbgKYH12 (ORCPT ); Wed, 25 Nov 2020 02:27:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbgKYH11 (ORCPT ); Wed, 25 Nov 2020 02:27:27 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7A1DC0613D4; Tue, 24 Nov 2020 23:27:27 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id t18so691238plo.0; Tue, 24 Nov 2020 23:27:27 -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=AGPccolegAy/JTxbZTRik5q3o3O+8z1qRwZ/CCC43DSGsHPequcD8wL06G0o2ByfTs XTAgHeg9SPavC9mvQP/43lqJoP6jMt6fwEzs/m1/hKocEIwA89dc/+S8I7dZ1LTk+loi tKrr/PmlkvNlOYqFJOAjlg+hBkLJm67e0LMBb3hH8IuT2JwWiv53rretOXKmhAPZVpEr SXSTRghRGDsANU6WZEpDYp/d9a3foqSpKeXE6V5nOFnGaT3ukfWQDz+ql1+AGU+ca4ch Fp9ASdQs0Oe5Gn4ib2tjiw+XEUflsrl3eBxVHOFOVE/enoX3R0bzST87MceKLr9lOoIR xXdQ== 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=GEWQGodbwesUsdgCaT8zNX5C/ozAnEUvyiYrEUpD1Ss8SNXixbbVEyuXwOr0JoeB5v iwG+IJZ3wI/S1OD5v0PqmJQv+RR7W7My6R5hp8ZI+S3u32MPoiHk58TVqYJGufR7bgLs SiuApmRYwBNW9BqOCKYyfgFRw35XqegJ7KP2Yd8bloZRSV1N6Pic3DCvZPtytXXU5GZq F4+d5QiUMJpona2Xke79K4c+yctexQQA4RjrlA5Zpqmw0WQ46wh6L2KftpDN4sondGOB 35KjhhWJeez7BQUy+E7+9YjhENHDYXbVAdvitB0cqGiXJXlolT9VJbb6Uy1p+JKLxcgv FqIA== X-Gm-Message-State: AOAM5308cLCbA2J8QO4VOSek8xei4hpELJaMhJ7qnzURdCYGmZBJ7Lfm ZEQERVIwUtT0wtMQMGN5RvA= X-Google-Smtp-Source: ABdhPJxEgXZx0sAKB+tNSuDqythnugaAG612pEytg50cJnYRoq+WLherCoVY0F2FGexzFymveIKB9A== X-Received: by 2002:a17:902:7fc9:b029:d6:c372:a04b with SMTP id t9-20020a1709027fc9b02900d6c372a04bmr2133396plb.4.1606289247443; Tue, 24 Nov 2020 23:27:27 -0800 (PST) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id q7sm1006055pfh.91.2020.11.24.23.27.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2020 23:27:26 -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: Wed, 25 Nov 2020 15:26:52 +0800 Message-Id: <20201125072653.15657-4-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20201125072653.15657-1-jlee@suse.com> References: <20201125072653.15657-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))