RE: [PATCH v19 17/27] x86/sgx: Add provisioning

From
Huang, Kai <hidden>
Date
2019-03-21 21:41:43
Reply to
Jarkko Sakkinen, 2019-03-21
On Thu, Mar 21, 2019 at 02:08:36AM +0000, Huang, Kai wrote:
quoted
On Tue, 2019-03-19 at 13:09 -0700, Sean Christopherson wrote:
quoted
On Sun, Mar 17, 2019 at 11:14:46PM +0200, Jarkko Sakkinen wrote:
quoted
In order to provide a mechanism for devilering provisoning rights:

1. Add a new file to the securityfs file called sgx/provision that works
   as a token for allowing an enclave to have the provisioning privileges.
2. Add a new ioctl called SGX_IOC_ENCLAVE_SET_ATTRIBUTE that
accepts the
quoted
quoted
quoted
   following data structure:

   struct sgx_enclave_set_attribute {
           __u64 addr;
           __u64 token_fd;
   };
Would you elaborate why the name is "token_fd"? I think *token* in SGX
has more specific meaning?
I'm open for other names.
How about attribute_fd, which is consistent with your IOCTL?

Thanks,
-Kai
Thread (21 messages) 21 messages, 6 authors, last reply 2019-04-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help