Re: [PATCH v24 12/24] x86/sgx: Linux Enclave Driver

From
Haitao Huang <hidden>
Date
2020-01-14 16:12:51
Also in
lkml
Reply to
Jarkko Sakkinen, 2019-11-29
On Fri, 29 Nov 2019 17:13:14 -0600, Jarkko Sakkinen [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+static int sgx_encl_init(struct sgx_encl *encl, struct sgx_sigstruct *sigstruct,
+			 struct sgx_einittoken *token)
+{
+	u64 mrsigner[4];
+	int ret;
+	int i;
+	int j;
+
+	/* Check that the required attributes have been authorized. */
+	if (encl->secs_attributes & ~encl->allowed_attributes)
+		return -EINVAL;
+
EACCES to be more specific?

Thanks
Haitao
Thread (7 messages) 7 messages, 3 authors, last reply 2020-01-23
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