mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 19:42:19 +00:00
Introduce an arm-cca-guest driver that registers with
the configfs-tsm module to provide user interfaces for
retrieving an attestation token.
When a new report is requested the arm-cca-guest driver
invokes the appropriate RSI interfaces to query an
attestation token.
The steps to retrieve an attestation token are as follows:
1. Mount the configfs filesystem if not already mounted
mount -t configfs none /sys/kernel/config
2. Generate an attestation token
report=/sys/kernel/config/tsm/report/report0
mkdir $report
dd if=/dev/urandom bs=64 count=1 > $report/inblob
hexdump -C $report/outblob
rmdir $report
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20241017131434.40935-11-steven.price@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
19 lines
374 B
Plaintext
19 lines
374 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Confidential computing related collateral
|
|
#
|
|
|
|
config TSM_REPORTS
|
|
select CONFIGFS_FS
|
|
tristate
|
|
|
|
source "drivers/virt/coco/efi_secret/Kconfig"
|
|
|
|
source "drivers/virt/coco/pkvm-guest/Kconfig"
|
|
|
|
source "drivers/virt/coco/sev-guest/Kconfig"
|
|
|
|
source "drivers/virt/coco/tdx-guest/Kconfig"
|
|
|
|
source "drivers/virt/coco/arm-cca-guest/Kconfig"
|