android_kernel_samsung_sm8650/drivers/virt
Dov Murik cbabf03c3e 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>
2022-04-13 19:11:20 +02:00
..
acrn virt: acrn: fix a memory leak in acrn_dev_ioctl() 2022-03-18 13:49:59 +01:00
coco/efi_secret virt: Add efi_secret module to expose confidential computing secrets 2022-04-13 19:11:20 +02:00
nitro_enclaves Merge 5.16-rc8 into char-misc-next 2022-01-03 13:44:38 +01:00
vboxguest virt: vbox: Do not use wait_event_interruptible when called from kernel context 2021-01-27 14:37:02 +01:00
fsl_hypervisor.c virt: fsl_hypervisor: Directly return 0 instead of using local ret variable 2022-03-18 13:49:00 +01:00
Kconfig virt: Add efi_secret module to expose confidential computing secrets 2022-04-13 19:11:20 +02:00
Makefile virt: Add efi_secret module to expose confidential computing secrets 2022-04-13 19:11:20 +02:00
vmgenid.c virt: vmgenid: recognize new CID added by Hyper-V 2022-03-25 08:49:40 -06:00