]> git.baikalelectronics.ru Git - kernel.git/commit
efi: vars: Move efivar caching layer into efivarfs
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 16:19:43 +0000 (18:19 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 18:40:19 +0000 (20:40 +0200)
commitc574630e575432e94d306b4e9f47261e761dc168
treeb3d6d54f895a8b189abe1547c475eaae857fff33
parent157af2422ddda0c38b544082087cb85d2d901a6e
efi: vars: Move efivar caching layer into efivarfs

Move the fiddly bits of the efivar layer into its only remaining user,
efivarfs, and confine its use to that particular module. All other uses
of the EFI variable store have no need for this additional layer of
complexity, given that they either only read variables, or read and
write variables into a separate GUIDed namespace, and cannot be used to
manipulate EFI variables that are covered by the EFI spec and/or affect
the boot flow.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c
drivers/firmware/efi/vars.c
fs/efivarfs/Makefile
fs/efivarfs/internal.h
fs/efivarfs/vars.c [new file with mode: 0644]
include/linux/efi.h