-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
loader.env.[ENVIRON] = {passthrough=true}
manifest option
It is now possible to define some envvars that are passed through from the host inside the Graphene instance (previously the only way to pass envvars was to set `loader.insecure__use_host_env`). A new LibOS regression test is added. Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
- Loading branch information
Dmitrii Kuvaiskii
committed
Sep 29, 2021
1 parent
5c505d4
commit 6b66346
Showing
6 changed files
with
272 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
LibOS/shim/test/regression/env_passthrough.manifest.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
loader.preload = "file:{{ gramine.libos }}" | ||
loader.argv0_override = "bootstrap" | ||
libos.entrypoint = "bootstrap" | ||
|
||
loader.env.LD_LIBRARY_PATH = "/lib" | ||
|
||
loader.env.A = { passthrough = true } | ||
loader.env.B = { value = "OVERWRITTEN_VALUE" } | ||
|
||
# loader.env.C = { passthrough = false } # not allowed for security reasons | ||
# loader.env.E = { passthrough = true, value = "THIS_IS_INCORRECT_SYNTAX" } | ||
|
||
fs.mount.lib.type = "chroot" | ||
fs.mount.lib.path = "/lib" | ||
fs.mount.lib.uri = "file:{{ gramine.runtimedir() }}" | ||
|
||
sgx.nonpie_binary = true | ||
|
||
sgx.trusted_files = [ | ||
"file:{{ gramine.runtimedir() }}/", | ||
"file:bootstrap", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.