diff options
author | Dov Murik <dovmurik@linux.ibm.com> | 2022-04-12 21:21:25 +0000 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-04-13 19:11:20 +0200 |
commit | cbabf03c3ef3cce74a97f140cf57611a9e8a21bc (patch) | |
tree | a1d26bbdce9e16baeb030275c371903c42c1a5cd /drivers/virt/Kconfig | |
parent | 1227418989346af3af179742cf42ce842e0ad484 (diff) | |
download | linux-cbabf03c3ef3cce74a97f140cf57611a9e8a21bc.tar.gz linux-cbabf03c3ef3cce74a97f140cf57611a9e8a21bc.tar.bz2 linux-cbabf03c3ef3cce74a97f140cf57611a9e8a21bc.zip |
virt: Add efi_secret module to expose confidential computing secrets
The new efi_secret module exposes the confidential computing (coco)
EFI secret area via securityfs interface.
When the module is loaded (and securityfs is mounted, typically under
/sys/kernel/security), a "secrets/coco" directory is created in
securityfs. In it, a file is created for each secret entry. The name
of each such file is the GUID of the secret entry, and its content is
the secret data.
This allows applications running in a confidential computing setting to
read secrets provided by the guest owner via a secure secret injection
mechanism (such as AMD SEV's LAUNCH_SECRET command).
Removing (unlinking) files in the "secrets/coco" directory will zero out
the secret in memory, and remove the filesystem entry. If the module is
removed and loaded again, that secret will not appear in the filesystem.
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://lore.kernel.org/r/20220412212127.154182-3-dovmurik@linux.ibm.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/virt/Kconfig')
-rw-r--r-- | drivers/virt/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/virt/Kconfig b/drivers/virt/Kconfig index 121b9293c737..c877da072d4d 100644 --- a/drivers/virt/Kconfig +++ b/drivers/virt/Kconfig @@ -47,4 +47,7 @@ source "drivers/virt/vboxguest/Kconfig" source "drivers/virt/nitro_enclaves/Kconfig" source "drivers/virt/acrn/Kconfig" + +source "drivers/virt/coco/efi_secret/Kconfig" + endif |