Skip to content

Warning: file_map does not currently support writable pass-through mappings on SGX #1639

Answered by dimakuv
tiagorvmartins asked this question in Q&A
Discussion options

You must be logged in to vote

The warning says it all: Gramine currently does not allow writable pass-through mappings on allowed files.

First of all, you need to investigate why your application (or the dependent library) wants a shared file-backed mapping. Typically this is done for seamless and fast dumping of the file contents to the underlying storage, or for shared memory between processes. Both these approaches are insecure, and thus Gramine disallows such mappings.

There are several ways to circumvent this:

  • If you don't need to persist these file contents on the disk, then mount this directory as tmpfs: fs.mounts = { type="tmpfs", path="/root/.ehtereum/.ethash", ... }
  • If you need to persist these file content…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tiagorvmartins
Comment options

Answer selected by tiagorvmartins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants