From 5032f4f57d9d46a3dfebb50523907724713e0001 Mon Sep 17 00:00:00 2001 From: Chong Cai Date: Wed, 1 Sep 2021 15:48:29 -0700 Subject: Add ioctl stub constants PiperOrigin-RevId: 394331928 --- pkg/abi/linux/ioctl.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 +} -- cgit v1.2.3