Skip to content

Commit 5002ef1

Browse files
author
Andras Fekete
committed
Give GDB permission to attach to processes as non-root
1 parent 4167a51 commit 5002ef1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ RUN cd /opt/sources && git clone --depth=1 --single-branch --branch=main http://
3535

3636
# Allow non-root to use tcpdump (will need NET_RAW and NET_ADMIN capability when running the container)
3737
RUN setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/tcpdump
38+
# Allow non-root to use gdb on processes (will need SYS_PTRACE capability when running the container)
39+
RUN setcap 'CAP_SYS_PTRACE+eip' /usr/bin/gdb
3840

3941
USER ${UID}:${GID}

0 commit comments

Comments
 (0)