Unable to ptrace(PTRACE_TRACEME) without sudo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The call to ptrace(
# which gdbserver
/usr/bin/gdbserver
# cat /proc/sys/
0
# gdbserver :9091 /bin/true
<no output>
# sudo gdbserver :9091 /bin/true
Process /bin/true created; pid = 31071
Listening on port 9091
# strace -f gdbserver :9091 /bin/true
...
ptrace(
...
# getcap /usr/bin/gdbserver
<no output>
Adding "setcap cap_sys_
Further details:
# lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04
# apt-cache policy linux-generic
linux-generic:
Installed: 4.15.0.118.105
Candidate: 4.15.0.118.105
Version table:
*** 4.15.0.118.105 500
500 http://
500 http://
100 /var/lib/
4.15.0.20.23 500
500 http://