Implement access to EFI variables and ESRT through an ioctl(2) interface
authorkettenis <kettenis@openbsd.org>
Sat, 14 Jan 2023 12:11:10 +0000 (12:11 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 14 Jan 2023 12:11:10 +0000 (12:11 +0000)
commitf2f886813ecce43460715d9633751066dbbedd5c
treebfcea49f25e943258a6b4381656101482e1b514a
parent3567c6ec7a7a08b2bc189357d151546f131bb69c
Implement access to EFI variables and ESRT through an ioctl(2) interface
that is compatible with what FreeBSD and NetBSD have.  Setting EFI
variables is only allowed at securelevel 0 and below.

Heavily based on work done by Sergii Dmytruk.

ok yasuoka@
13 files changed:
sys/arch/amd64/amd64/conf.c
sys/arch/amd64/amd64/efi_machdep.c
sys/arch/amd64/conf/files.amd64
sys/arch/amd64/include/efivar.h [new file with mode: 0644]
sys/arch/arm64/arm64/conf.c
sys/arch/arm64/conf/files.arm64
sys/arch/arm64/dev/efi_machdep.c
sys/arch/arm64/include/efivar.h [new file with mode: 0644]
sys/dev/efi/efi.c [new file with mode: 0644]
sys/dev/efi/efi.h
sys/dev/efi/efiio.h [new file with mode: 0644]
sys/dev/efi/files.efi [new file with mode: 0644]
sys/sys/conf.h