aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virt/coco/efi_secret/Makefile
diff options
context:
space:
mode:
authorDov Murik <dovmurik@linux.ibm.com>2022-04-12 21:21:25 +0000
committerArd Biesheuvel <ardb@kernel.org>2022-04-13 19:11:20 +0200
commitcbabf03c3ef3cce74a97f140cf57611a9e8a21bc (patch)
treea1d26bbdce9e16baeb030275c371903c42c1a5cd /drivers/virt/coco/efi_secret/Makefile
parentefi: Save location of EFI confidential computing area (diff)
downloadlinux-dev-cbabf03c3ef3cce74a97f140cf57611a9e8a21bc.tar.xz
linux-dev-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/coco/efi_secret/Makefile')
-rw-r--r--drivers/virt/coco/efi_secret/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/virt/coco/efi_secret/Makefile b/drivers/virt/coco/efi_secret/Makefile
new file mode 100644
index 000000000000..c7047ce804f7
--- /dev/null
+++ b/drivers/virt/coco/efi_secret/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_EFI_SECRET) += efi_secret.o