Skip to content

PAL_ERROR_INVAL when using loader.env_src_file with GSC #1636

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

You must be logged in to vote

You are confusing command-line arguments (argv for short) and environment variables (envs or envp for short).

If you want to use environment variables, then you need to specify them as proper envvars:
gramine-argv-serializer "ENVVAR1=VALUE1" "ENVVAR2=VALUE2" > /mnt/app/envs

Is it confusing that the tool is called gramine-argv-serializer? This tool is used both for argv and for envs.

Note: I have been explained before that using allowed_files and fs.mounts for the same path file, doesn't make sense, actually they are mutually exclusive (the statement was made here: #1575 (comment))

That's not exactly correct. The statement was made for sgx.allowed_files and fs.mounts = { type="encrypted" }

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