Skip to content

Commit

Permalink
fixup! [LibOS] Add type = "encrypted" mounts
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Marczewski <[email protected]>
  • Loading branch information
pwmarcz committed Mar 16, 2022
1 parent 57880b8 commit 7b3650d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LibOS/shim/test/regression/send_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ int main(int argc, char** argv) {
pos += ret;
} while (pos < MESSAGE_LEN);

/*
* Make sure writes to a protected file are flushed.
*
* TODO: this should not be necessary, Gramine should ensure protected files are flushed during
* fork.
*/
if (fsync(fd) == -1)
err(1, "fsync");

pid_t pid = fork();
if (pid < 0)
err(1, "fork");
Expand Down

0 comments on commit 7b3650d

Please sign in to comment.