-
Notifications
You must be signed in to change notification settings - Fork 2
/
nsjail.cfg
64 lines (59 loc) · 1.07 KB
/
nsjail.cfg
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
59
60
61
62
63
64
name: "anvil-nsjail"
description: "nsjail configuration for anvil & uvicorn server."
mode: ONCE
uidmap {inside_id: "1000"}
gidmap {inside_id: "1000"}
disable_rl: true
time_limit: 2147483647
clone_newnet: false # share net namespace
envar: "PYTHONPATH=/opt/python/lib"
envar: "INSTANCE_DIR=/tmp/instances"
envar: "UNIX_SOCKET_LOCATION=/home/user/anvil_server.sock"
cwd: "/home/user"
mount: [
{
src: "/chroot"
dst: "/"
is_bind: true
rw: true # foundry insists on spewing cache files everywhere
},
{
src: "/usr/bin/kctf_restore_env"
dst: "/bin/kctf_restore_env"
is_bind: true
is_dir: false
},
{
src: "/paradigm/environ"
dst: "/environ"
is_bind: true
is_dir: false
mandatory: false
},
{
src: "/tmp"
dst: "/tmp"
rw: true
is_bind: true
},
{
dst: "/proc"
fstype: "proc"
rw: true
},
{
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
is_bind: true
},
{
src: "/dev"
dst: "/dev"
is_bind: true
},
{
src: "/dev/null",
dst: "/dev/null",
is_bind: true,
}
]