Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp713351pxb; Thu, 25 Feb 2021 13:09:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyje/RBw/n1ybxWoQsF3/Pa0kVSbpo4raSGb1RLNHMCki07H1at4w3Ai0DfsrPAdsKGGUnL X-Received: by 2002:a17:906:f74d:: with SMTP id jp13mr4754846ejb.287.1614287363014; Thu, 25 Feb 2021 13:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614287363; cv=none; d=google.com; s=arc-20160816; b=cRUIHgj2DR0Ila/xO3qbK2qtRQz6MgVYntegRKCoMmFhtmF3migvlCqKZlmUHuqQvs HHrco57m+kf4gvawvOb7X/LrEwOT4lOVPTEFUG5Wo8W4IMwgcjKkSi7BCpb6rgirmfgS Zj45rgALX8GHoTfl3PBU4FGUxPFY2sXnKoA1PgwOsdMz0WMgOHchV0fRb8Ac9kw8BkNX y/3TLkY5rwNKCxgQTFjq15cog0KsLH5cdLSiIlVFwlV8/hDUTOlsyOPKXtJruZNYE1YY L4mpd3RWcv43Vc3gVV1fknZGh43VX+7zP0AEALEEfowBU+jPXpPN7r3jwh4E7SJfZTV6 Tmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=3ZofdrozonSrpXzzHJj4sZQrAAT/WiE2QcpLH4zUhIM=; b=SfsZ0InYyTauGshocTkTf9U2ddws4IObAKx69XC3SqXXsHl1j/B+wmHTkdytiRA1rI gG14uG8KMUlUDg+X7s3L1s5DPbikFA2wZPoAH6xte3VHatTMX74zEctpBe1P/g3B3OTs eTfDLoOwoOtGDVlnN+Pfmwyn9yQ9kWtx0BfpADo0BPYxQLLe2nAwNpmvuT7l6fobneJA 3bbCD7BfygC4CE3fFHlSB7++CABn+ezZiNutfQuw0zVWAfj7aDGoLzSXDK1F60UP1jCr v18v9q1yMmMMsh1a0lgV7c6l1ku2vffqzOGEaNrQPWsea2uoO/PVdIzgLl2Rnpsz0bau TBpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Px3sa+HC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si4112164ejr.282.2021.02.25.13.08.57; Thu, 25 Feb 2021 13:09:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Px3sa+HC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234641AbhBYVIQ (ORCPT + 99 others); Thu, 25 Feb 2021 16:08:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:59117 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234263AbhBYVAM (ORCPT ); Thu, 25 Feb 2021 16:00:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614286721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ZofdrozonSrpXzzHJj4sZQrAAT/WiE2QcpLH4zUhIM=; b=Px3sa+HCgv1dfN53X56cafMd/F4zNbcKV/pUN1JlmDVoMOrJEhZLO+PP97sjFFx5cfqHw9 wd15TnyBo228p5NbSPpz0C3SzzUqsn9sDo6SSfWyHq2SESefWE0jhsDGWRUGj+G9RfzM0d hSYd+Zq3QQLiyEPtsmpehln52O5dRxg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-570-0yqDLGttM8eP9ofQzSG_Uw-1; Thu, 25 Feb 2021 15:58:37 -0500 X-MC-Unique: 0yqDLGttM8eP9ofQzSG_Uw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 44D551005501; Thu, 25 Feb 2021 20:58:35 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-119-68.rdu2.redhat.com [10.10.119.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12E0D5D767; Thu, 25 Feb 2021 20:58:32 +0000 (UTC) Subject: [PATCH 0/4] keys: Add EFI_CERT_X509_GUID support for dbx/mokx entries From: David Howells To: Eric Snowberg Cc: Jarkko Sakkinen , Randy Dunlap , keyrings@vger.kernel.org, James Bottomley , =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= , Jarkko Sakkinen , Arnd Bergmann , dhowells@redhat.com, Jarkko Sakkinen , =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= , keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 25 Feb 2021 20:58:32 +0000 Message-ID: <161428671215.677100.6372209948022011988.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's my take on v5 of Eric Snowberg's patches[1]: This series of patches adds support for EFI_CERT_X509_GUID entries [2]. It has been expanded to not only include dbx entries but also entries in the mokx. Additionally Eric included his patches to preload these certificate [3]. The patches can be found on the following branch: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-cve-2020-26541-branch Changes: - I've modified the first patch in the series to fix a configuration problem[4][5], to move the added functions to a more logical place within the file and to add kerneldoc comments. Link: https://lore.kernel.org/r/20210122181054.32635-1-eric.snowberg@oracle.com [1] Link: https://patchwork.kernel.org/project/linux-security-module/patch/20200916004927.64276-1-eric.snowberg@oracle.com/ [2] Link: https://lore.kernel.org/patchwork/cover/1315485/ [3] Link: https://lore.kernel.org/r/bc2c24e3-ed68-2521-0bf4-a1f6be4a895d@infradead.org/ [4] Link: https://lore.kernel.org/r/20210225125638.1841436-1-arnd@kernel.org/ [5] David --- Eric Snowberg (4): certs: Add EFI_CERT_X509_GUID support for dbx entries certs: Move load_system_certificate_list to a common function certs: Add ability to preload revocation certs integrity: Load mokx variables into the blacklist keyring certs/Kconfig | 8 +++ certs/Makefile | 20 ++++++- certs/blacklist.c | 17 ++++++ certs/common.c | 56 +++++++++++++++++++ certs/common.h | 9 +++ certs/revocation_certificates.S | 21 +++++++ certs/system_keyring.c | 49 +--------------- scripts/Makefile | 1 + security/integrity/platform_certs/load_uefi.c | 20 ++++++- 9 files changed, 150 insertions(+), 51 deletions(-) create mode 100644 certs/common.c create mode 100644 certs/common.h create mode 100644 certs/revocation_certificates.S