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)
commit2d82e6227ea189c0589e7383a36616ac2a2d248c
treeb3d6d54f895a8b189abe1547c475eaae857fff33
parentbbc6d2c6ef2248f42689ba0cab7ea8b61588bef2
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