-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathentrypoint.common.manifest.template
31 lines (24 loc) · 1.15 KB
/
entrypoint.common.manifest.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
libos.entrypoint = "/gramine/app_files/{{binary_basename}}"
# Add distro-specific `loader.entrypoint` and `loader.env.LD_LIBRARY_PATH`
{% block loader %}{% endblock %}
loader.env.PATH = "{{"{{env_path}}"}}"
loader.log_level = {% if debug %} "all" {% else %} "error" {% endif %}
fs.root.type = "chroot"
fs.root.uri = "file:/"
# Gramine's default working dir is '/', so change the working directory to the desired one
fs.start_dir = "{{working_dir}}"
sgx.nonpie_binary = true
sgx.debug = {% if debug %} true {% else %} false {% endif %}
{% if insecure_args %}
# !! INSECURE !! Allow passing command-line arguments from the host without validation.
# Most Docker images rely on runtime arguments and hence, a more general technique is required.
# The issue is documented at https://github.com/gramineproject/gsc/issues/13.
loader.argv0_override = "/gramine/app_files/{{binary_basename}}"
loader.insecure__use_cmdline_argv = true
{% else %}
loader.argv_src_file = "file:/gramine/app_files/trusted_argv"
sgx.trusted_files = [
"file:/gramine/app_files/trusted_argv",
]
{% endif %}
# All trusted files and the user defined manifest specifications should be after this line