Debian Codegraph @

schema/test/config/good/spec-example.json

raw symbols SCIP
1 {
2 "ociVersion": "0.5.0-dev",
3 "process": {
4 "terminal": true,
5 "user": {
6 "uid": 1,
7 "gid": 1,
8 "additionalGids": [
9 5,
10 6
11 ]
12 },
13 "args": [
14 "sh"
15 ],
16 "env": [
17 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
18 "TERM=xterm"
19 ],
20 "cwd": "/",
21 "capabilities": {
22 "bounding": [
23 "CAP_AUDIT_WRITE",
24 "CAP_KILL",
25 "CAP_NET_BIND_SERVICE"
26 ],
27 "permitted": [
28 "CAP_AUDIT_WRITE",
29 "CAP_KILL",
30 "CAP_NET_BIND_SERVICE"
31 ],
32 "inheritable": [
33 "CAP_AUDIT_WRITE",
34 "CAP_KILL",
35 "CAP_NET_BIND_SERVICE"
36 ],
37 "effective": [
38 "CAP_AUDIT_WRITE",
39 "CAP_KILL"
40 ],
41 "ambient": [
42 "CAP_NET_BIND_SERVICE"
43 ]
44 },
45 "rlimits": [
46 {
47 "type": "RLIMIT_CORE",
48 "hard": 1024,
49 "soft": 1024
50 },
51 {
52 "type": "RLIMIT_NOFILE",
53 "hard": 1024,
54 "soft": 1024
55 }
56 ],
57 "apparmorProfile": "acme_secure_profile",
58 "selinuxLabel": "system_u:system_r:svirt_lxc_net_t:s0:c124,c675",
59 "noNewPrivileges": true
60 },
61 "root": {
62 "path": "rootfs",
63 "readonly": true
64 },
65 "hostname": "slartibartfast",
66 "domainname": "foobarbaz.test",
67 "mounts": [
68 {
69 "destination": "/proc",
70 "type": "proc",
71 "source": "proc"
72 },
73 {
74 "destination": "/dev",
75 "type": "tmpfs",
76 "source": "tmpfs",
77 "options": [
78 "nosuid",
79 "strictatime",
80 "mode=755",
81 "size=65536k"
82 ]
83 },
84 {
85 "destination": "/dev/pts",
86 "type": "devpts",
87 "source": "devpts",
88 "options": [
89 "nosuid",
90 "noexec",
91 "newinstance",
92 "ptmxmode=0666",
93 "mode=0620",
94 "gid=5"
95 ]
96 },
97 {
98 "destination": "/dev/shm",
99 "type": "tmpfs",
100 "source": "shm",
101 "options": [
102 "nosuid",
103 "noexec",
104 "nodev",
105 "mode=1777",
106 "size=65536k"
107 ]
108 },
109 {
110 "destination": "/dev/mqueue",
111 "type": "mqueue",
112 "source": "mqueue",
113 "options": [
114 "nosuid",
115 "noexec",
116 "nodev"
117 ]
118 },
119 {
120 "destination": "/sys",
121 "type": "sysfs",
122 "source": "sysfs",
123 "options": [
124 "nosuid",
125 "noexec",
126 "nodev"
127 ]
128 },
129 {
130 "destination": "/sys/fs/cgroup",
131 "type": "cgroup",
132 "source": "cgroup",
133 "options": [
134 "nosuid",
135 "noexec",
136 "nodev",
137 "relatime",
138 "ro"
139 ]
140 }
141 ],
142 "hooks": {
143 "prestart": [
144 {
145 "path": "/usr/bin/fix-mounts",
146 "args": [
147 "fix-mounts",
148 "arg1",
149 "arg2"
150 ],
151 "env": [
152 "key1=value1"
153 ]
154 },
155 {
156 "path": "/usr/bin/setup-network"
157 }
158 ],
159 "createRuntime": [
160 {
161 "path": "/usr/bin/fix-mounts",
162 "args": [
163 "fix-mounts",
164 "arg1",
165 "arg2"
166 ],
167 "env": [
168 "key1=value1"
169 ]
170 },
171 {
172 "path": "/usr/bin/setup-network"
173 }
174 ],
175 "createContainer": [
176 {
177 "path": "/usr/bin/mount-hook",
178 "args": [
179 "-mount",
180 "arg1",
181 "arg2"
182 ],
183 "env": [
184 "key1=value1"
185 ]
186 }
187 ],
188 "startContainer": [
189 {
190 "path": "/usr/bin/refresh-ldcache"
191 }
192 ],
193 "poststart": [
194 {
195 "path": "/usr/bin/notify-start",
196 "timeout": 5
197 }
198 ],
199 "poststop": [
200 {
201 "path": "/usr/sbin/cleanup.sh",
202 "args": [
203 "cleanup.sh",
204 "-f"
205 ]
206 }
207 ]
208 },
209 "linux": {
210 "devices": [
211 {
212 "path": "/dev/fuse",
213 "type": "c",
214 "major": 10,
215 "minor": 229,
216 "fileMode": 438,
217 "uid": 0,
218 "gid": 0
219 },
220 {
221 "path": "/dev/sda",
222 "type": "b",
223 "major": 8,
224 "minor": 0,
225 "fileMode": 432,
226 "uid": 0,
227 "gid": 0
228 }
229 ],
230 "uidMappings": [
231 {
232 "containerID": 0,
233 "hostID": 1000,
234 "size": 32000
235 }
236 ],
237 "gidMappings": [
238 {
239 "containerID": 0,
240 "hostID": 1000,
241 "size": 32000
242 }
243 ],
244 "sysctl": {
245 "net.ipv4.ip_forward": "1",
246 "net.core.somaxconn": "256"
247 },
248 "cgroupsPath": "/myRuntime/myContainer",
249 "resources": {
250 "network": {
251 "classID": 1048577,
252 "priorities": [
253 {
254 "name": "eth0",
255 "priority": 500
256 },
257 {
258 "name": "eth1",
259 "priority": 1000
260 }
261 ]
262 },
263 "pids": {
264 "limit": 32771
265 },
266 "hugepageLimits": [
267 {
268 "pageSize": "2MB",
269 "limit": 9223372036854772000
270 },
271 {
272 "pageSize": "64KB",
273 "limit": 1000000
274 }
275 ],
276 "oomScoreAdj": 100,
277 "memory": {
278 "limit": 536870912,
279 "reservation": 536870912,
280 "swap": 536870912,
281 "kernel": -1,
282 "kernelTCP": -1,
283 "swappiness": 0,
284 "disableOOMKiller": false,
285 "useHierarchy": false,
286 "checkBeforeUpdate": false
287 },
288 "cpu": {
289 "shares": 1024,
290 "quota": 1000000,
291 "burst": 1000000,
292 "period": 500000,
293 "realtimeRuntime": 950000,
294 "realtimePeriod": 1000000,
295 "cpus": "2-3",
296 "mems": "0-7"
297 },
298 "devices": [
299 {
300 "allow": false,
301 "access": "rwm"
302 },
303 {
304 "allow": true,
305 "type": "c",
306 "major": 10,
307 "minor": 229,
308 "access": "rw"
309 },
310 {
311 "allow": true,
312 "type": "b",
313 "major": 8,
314 "minor": 0,
315 "access": "r"
316 }
317 ],
318 "blockIO": {
319 "weight": 10,
320 "leafWeight": 10,
321 "weightDevice": [
322 {
323 "major": 8,
324 "minor": 0,
325 "weight": 500,
326 "leafWeight": 300
327 },
328 {
329 "major": 8,
330 "minor": 16,
331 "weight": 500
332 }
333 ],
334 "throttleReadBpsDevice": [
335 {
336 "major": 8,
337 "minor": 0,
338 "rate": 600
339 }
340 ],
341 "throttleWriteIOPSDevice": [
342 {
343 "major": 8,
344 "minor": 16,
345 "rate": 300
346 }
347 ]
348 }
349 },
350 "rootfsPropagation": "slave",
351 "seccomp": {
352 "defaultAction": "SCMP_ACT_ALLOW",
353 "architectures": [
354 "SCMP_ARCH_X86",
355 "SCMP_ARCH_X32"
356 ],
357 "syscalls": [
358 {
359 "names": [
360 "getcwd",
361 "chmod"
362 ],
363 "action": "SCMP_ACT_ERRNO"
364 }
365 ]
366 },
367 "timeOffsets": {
368 "monotonic": {
369 "secs": 172800,
370 "nanosecs": 0
371 },
372 "boottime": {
373 "secs": 604800,
374 "nanosecs": 0
375 }
376 },
377 "namespaces": [
378 {
379 "type": "pid"
380 },
381 {
382 "type": "network"
383 },
384 {
385 "type": "ipc"
386 },
387 {
388 "type": "uts"
389 },
390 {
391 "type": "mount"
392 },
393 {
394 "type": "user"
395 },
396 {
397 "type": "cgroup"
398 },
399 {
400 "type": "time"
401 }
402 ],
403 "maskedPaths": [
404 "/proc/kcore",
405 "/proc/latency_stats",
406 "/proc/timer_stats",
407 "/proc/sched_debug"
408 ],
409 "readonlyPaths": [
410 "/proc/asound",
411 "/proc/bus",
412 "/proc/fs",
413 "/proc/irq",
414 "/proc/sys",
415 "/proc/sysrq-trigger"
416 ],
417 "mountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c715,c811"
418 },
419 "annotations": {
420 "com.example.key1": "value1",
421 "com.example.key2": "value2"
422 }
423 }