summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-01 22:55:59 +0000
committergVisor bot <gvisor-bot@google.com>2021-09-01 22:55:59 +0000
commit583b7694f3e16aae5829c2b4281eec6258ecd09b (patch)
treec0c6cae741b03f93d03c1e528ca93a1f5bc53c6e /pkg/abi
parentef43df2981e1410d2dde8fe9c38445740f941881 (diff)
parent5032f4f57d9d46a3dfebb50523907724713e0001 (diff)
Merge release-20210823.0-41-g5032f4f57 (automated)
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/ioctl.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/abi/linux/ioctl.go b/pkg/abi/linux/ioctl.go
index 006b5a525..29062c97a 100644
--- a/pkg/abi/linux/ioctl.go
+++ b/pkg/abi/linux/ioctl.go
@@ -170,3 +170,18 @@ const (
KCOV_MODE_TRACE_PC = 2
KCOV_MODE_TRACE_CMP = 3
)
+
+// Attestation ioctls.
+var (
+ SIGN_ATTESTATION_REPORT = IOC(_IOC_READ, 's', 1, 65)
+)
+
+// SizeOfQuoteInputData is the number of bytes in the input data of ioctl call
+// to get quote.
+const SizeOfQuoteInputData = 64
+
+// SignReport is a struct that gets signed quote from input data.
+type SignReport struct {
+ data [64]byte
+ quote []byte
+}