-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathmanifest.template
58 lines (48 loc) · 1.92 KB
/
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
54
55
56
57
58
loader.entrypoint = "file:{{ gramine.libos }}"
libos.entrypoint = "{{ entrypoint }}"
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}:/usr/lib:/usr/lib64"
loader.env.PATH = "/bin:/usr/bin:."
loader.env.LD_PRELOAD = "{{ coreutils_libdir }}/libstdbuf.so"
loader.env._STDBUF_O = "L"
loader.insecure__use_cmdline_argv = true
fs.root.uri = "file:{{ binary_dir }}"
fs.mounts = [
{ path = "/etc", uri = "file:/etc" },
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/usr", uri = "file:/usr" },
{ path = "/tmp", uri = "file:/tmp" },
]
# for flock tests
sys.experimental__enable_flock = true
sys.brk.max_size = "32M"
sys.stack.size = "4M"
sgx.debug = true
sgx.edmm_enable = {{ 'true' if env.get('EDMM', '0') == '1' else 'false' }}
# for tests that require SIGSEGV handling (e.g., setrlimit01, mmap03)
sgx.use_exinfo = true
sgx.allowed_files = [
"file:/tmp",
]
sgx.trusted_files = [
"file:{{ gramine.libos }}",
"file:{{ binary_dir }}/{{ entrypoint }}",
"file:{{ gramine.runtimedir() }}/ld-linux-x86-64.so.2",
"file:{{ gramine.runtimedir() }}/libc.so.6",
"file:{{ gramine.runtimedir() }}/libdl.so.2",
"file:{{ gramine.runtimedir() }}/libm.so.6",
"file:{{ gramine.runtimedir() }}/libpthread.so.0",
"file:{{ gramine.runtimedir() }}/librt.so.1",
"file:{{ coreutils_libdir }}/libstdbuf.so",
]
# below IOCTL is for socket ioctl tests (e.g. `sockioctl01`); note that there is no additional
# sanitization of these IOCTLs but this is only for testing anyway
sys.ioctl_structs.ifconf = [
# When ifc_req is NULL, direction of ifc_len is out. Otherwise, direction is in.
{ size = 4, direction = "inout", name = "ifc_len" }, # ifc_len
{ size = 4, direction = "none" }, # padding
{ ptr = [ { size = "ifc_len", direction = "in" } ] }, # ifc_req
]
sys.allowed_ioctls = [
{ request_code = 0x8912, struct = "ifconf" }, # SIOCGIFCONF
]