-
Notifications
You must be signed in to change notification settings - Fork 22
/
mysqld.manifest.template
46 lines (37 loc) · 1.37 KB
/
mysqld.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
# MySQL manifest example
loader.entrypoint = "file:{{ gramine.libos }}"
libos.entrypoint = "{{ entrypoint }}"
loader.log_level = "{{ log_level }}"
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}:/usr/lib:/usr/{{ arch_libdir }}"
loader.insecure__use_cmdline_argv = true
sys.enable_sigterm_injection = true
sgx.nonpie_binary = true
sgx.enclave_size = "8G"
sgx.thread_num = 128
loader.uid = {{ uid }}
loader.gid = {{ gid }}
fs.mounts = [
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/usr/{{ arch_libdir }}", uri = "file:/usr/{{ arch_libdir }}" },
{ path = "{{ entrypoint }}", uri = "file:{{ entrypoint }}" },
{ path = "/usr/lib/mysql", uri = "file:/usr/lib/mysql" },
{ path = "/var/lib/mysql-files", uri = "file:/var/lib/mysql-files" },
{ path = "/var/lib/mysql-keyring", uri = "file:/var/lib/mysql-keyring" },
{ path = "/var/run/mysqld", uri = "file:/var/run/mysqld" },
{ path = "/lib/mysql/plugin", uri = "file:/lib/mysql/plugin" },
{ path = "/tmp", uri = "file:/tmp" },
]
sgx.trusted_files = [
"file:{{ gramine.libos }}",
"file:{{ entrypoint }}",
"file:{{ gramine.runtimedir() }}/",
"file:{{ arch_libdir }}/",
"file:/usr/{{ arch_libdir }}/",
"file:/usr/lib/mysql/",
"file:/lib/mysql/plugin/",
]
sgx.allowed_files = [
"file:/var/run/mysqld/",
"file:/tmp/",
]