Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests for creating enclaves via OCALLs. #431

Merged
merged 2 commits into from
Jul 19, 2018

Conversation

gupta-ak
Copy link
Contributor

@gupta-ak gupta-ak commented Jul 9, 2018

No description provided.

Copy link
Contributor

@CodeMonkeyLeet CodeMonkeyLeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. See comment regarding handling TOCTOU.

@@ -0,0 +1 @@
run enc/ocall_create_enc.signed.so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop this file

{
oe_host_printf("==== Host: TestOCallEnclave\n");

TestEnclaveArgs* args = (TestEnclaveArgs*)args_;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference: The recommendation to devs is to make local copies of input args to prevent time-of-check to time-of-use (TOCTOU) issues. We haven't applied this consistently to tests in the codebase, but we should probably not introduce more instances where we fail to do this (see ocall-ecall tests for an example)

@CodeMonkeyLeet CodeMonkeyLeet added the testing Issue has to do with testing or quality management label Jul 11, 2018
@CodeMonkeyLeet CodeMonkeyLeet added this to Backlog in Public preview via automation Jul 11, 2018
@CodeMonkeyLeet CodeMonkeyLeet added this to the 2018.07 milestone Jul 11, 2018
@CodeMonkeyLeet CodeMonkeyLeet moved this from Backlog to In review in Public preview Jul 11, 2018
@mikbras mikbras merged commit 00cf9a2 into master Jul 19, 2018
Public preview automation moved this from In review to Done Jul 19, 2018
@anitagov anitagov deleted the akagup/tests.ocall-create branch July 21, 2018 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issue has to do with testing or quality management
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants