Skip to content

Commit b3de87b

Browse files
committed
Add SYS_PTRACE capability and unconfined seccomp security option to devcontainer configuration
1 parent bb06ab4 commit b3de87b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
"linux/amd64"
1010
]
1111
},
12+
// Allows the container to use ptrace, which is useful for debugging.
13+
"capAdd": [
14+
"SYS_PTRACE"
15+
],
16+
// Disables seccomp, which can be necessary for some debugging tools to function correctly.
17+
"securityOpt": [
18+
"seccomp=unconfined"
19+
],
1220
// Features to add to the dev container. More info: https://containers.dev/features.
1321
"features": {
1422
"ghcr.io/devcontainers/features/github-cli:1": {

0 commit comments

Comments
 (0)