-
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 15, 2021
1 parent
3c3b522
commit d96b51d
Showing
6 changed files
with
267 additions
and
63 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
20 changes: 20 additions & 0 deletions
20
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,20 @@ | ||
loader.preload = "file:{{ graphene.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 } | ||
|
||
# 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:{{ graphene.runtimedir() }}" | ||
|
||
sgx.trusted_files.runtime = "file:{{ graphene.runtimedir() }}/" | ||
sgx.trusted_files.bootstrap = "file:bootstrap" | ||
|
||
sgx.nonpie_binary = true |
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.