[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200826034455.28707-1-lszubowi@redhat.com>
Date: Tue, 25 Aug 2020 23:44:52 -0400
From: Lenny Szubowicz <lszubowi@...hat.com>
To: linux-kernel@...r.kernel.org, linux-efi@...r.kernel.org,
platform-driver-x86@...r.kernel.org,
linux-security-module@...r.kernel.org, ardb@...nel.org,
jmorris@...ei.org, serge@...lyn.com, keescook@...omium.org,
zohar@...ux.ibm.com, bp@...en8.de, pjones@...hat.com,
dhowells@...hat.com, prarit@...hat.com
Subject: [PATCH 0/3] integrity: Load certs from EFI MOK config table
Because of system-specific EFI firmware limitations,
EFI volatile variables may not be capable of holding the
required contents of the Machine Owner Key (MOK) certificate
store. Therefore, an EFI boot loader may pass the MOK certs
via a EFI configuration table created specifically for this
purpose to avoid this firmware limitation.
An EFI configuration table is a simpler and more robust mechanism
compared to EFI variables and is well suited for one-way passage
of static information from a pre-OS environment to the kernel.
This patch set does not remove the support for loading certs
from the EFI MOK variables into the platform key ring.
However, if both the EFI MOK config table and corresponding
EFI MOK variables are present, the MOK table is used as the
source of MOK certs.
The contents of the individual named MOK config table entries are
made available to user space via read-only sysfs binary files under:
/sys/firmware/efi/mok-variables/
Lenny Szubowicz (3):
efi: Support for MOK variable config table
integrity: Move import of MokListRT certs to a separate routine
integrity: Load certs from the EFI MOK config table
arch/x86/kernel/setup.c | 1 +
arch/x86/platform/efi/efi.c | 3 +
drivers/firmware/efi/Makefile | 1 +
drivers/firmware/efi/arm-init.c | 1 +
drivers/firmware/efi/efi.c | 6 +
drivers/firmware/efi/mokvar-table.c | 360 ++++++++++++++++++
include/linux/efi.h | 34 ++
security/integrity/platform_certs/load_uefi.c | 85 ++++-
8 files changed, 472 insertions(+), 19 deletions(-)
create mode 100644 drivers/firmware/efi/mokvar-table.c
--
2.27.0
Powered by blists - more mailing lists