-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathclient.manifest.template
53 lines (42 loc) · 1.44 KB
/
client.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright (C) 2023 Gramine contributors
# SPDX-License-Identifier: BSD-3-Clause
# Client manifest file
libos.entrypoint = "/client"
loader.log_level = "{{ log_level }}"
loader.env.LD_LIBRARY_PATH = "/lib:/usr/local/lib:{{ arch_libdir }}:/usr{{ arch_libdir }}"
loader.env.LC_ALL = "C"
loader.env.RA_TLS_CLIENT_INSIDE_SGX = "1"
loader.insecure__use_cmdline_argv = true
loader.insecure__use_host_env = true
fs.mounts = [
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "/usr/local/lib", uri = "file:/usr/local/lib" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/usr{{ arch_libdir }}", uri = "file:/usr{{ arch_libdir }}" },
{ path = "/etc", uri = "file:/etc" },
{ path = "/client", uri = "file:client" },
]
sys.enable_extra_runtime_domain_names_conf = true
sgx.debug = true
sgx.edmm_enable = {{ 'true' if env.get('EDMM', '0') == '1' else 'false' }}
sgx.enclave_size = "512M"
sgx.max_threads = {{ '1' if env.get('EDMM', '0') == '1' else '4' }}
sgx.trusted_files = [
"file:client",
"file:{{ gramine.runtimedir() }}/",
"file:/usr/local/lib/",
"file:{{ arch_libdir }}/",
"file:/usr{{ arch_libdir }}/",
"file:ssl/ca.crt",
]
sgx.allowed_files = [
"file:/etc/nsswitch.conf",
"file:/etc/host.conf",
"file:/etc/ethers",
"file:/etc/hosts",
"file:/etc/group",
"file:/etc/passwd",
"file:/etc/gai.conf",
"file:/etc/ssl/certs/ca-certificates.crt",
"file:/etc/sgx_default_qcnl.conf",
]