Skip to content

Commit a27b20e

Browse files
committed
Add CAP_SYS_PTRACE to config
NOTE: This is needed to enter namespaces for other users!
1 parent 5ec8126 commit a27b20e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Plugin "ghcr.io/devplayer0/docker-net-dhcp:release-linux-amd64" is requesting th
1919
- network: [host]
2020
- host pid namespace: [true]
2121
- mount: [/var/run/docker.sock]
22-
- capabilities: [CAP_NET_ADMIN CAP_SYS_ADMIN]
22+
- capabilities: [CAP_NET_ADMIN CAP_SYS_ADMIN CAP_SYS_PTRACE]
2323
Do you grant the above permissions? [y/N] y
2424
release-linux-amd64: Pulling from ghcr.io/devplayer0/docker-net-dhcp
2525
Digest: sha256:<some hash>

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"linux": {
4444
"capabilities": [
4545
"CAP_NET_ADMIN",
46-
"CAP_SYS_ADMIN"
46+
"CAP_SYS_ADMIN",
47+
"CAP_SYS_PTRACE"
4748
]
4849
}
4950
}

0 commit comments

Comments
 (0)