Merge pull request #276 from matter-labs/sys

feat(tdx_google): add support for attestation in container
This commit is contained in:
Harald Hoyer 2025-02-20 12:55:39 +01:00 committed by GitHub
commit a430e2f93b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,12 +23,14 @@
echo "Measuring $DIGEST" >&2
test -c /dev/tdx_guest && tdx-extend --digest "$DIGEST" --rtmr 3
# /sys/kernel/config is needed for attestation
docker run -d --rm \
--name tdx_container \
--env "GOOGLE_METADATA=1" \
--network=host \
--init \
--privileged \
-v /sys/kernel/config:/sys/kernel/config \
"sha256:$DIGEST"
exec docker wait tdx_container
'';