Comment # 11 on bug 1221763 from Tom de Vries
If ptrace_scope=1 remains the default, this (
https://wiki.archlinux.org/title/Capabilities ) suggests a way of dealing with
it without becoming root:
...
$ sudo -E capsh --caps="cap_setpcap,cap_setuid,cap_setgid+ep
cap_sys_ptrace+eip" --keep=1 --user="$USER" --addamb="cap_sys_ptrace"
--shell=/usr/bin/gdb -- -p <pid>
...
[ Doesn't work for me though on openSUSE Leap 15.4, I get "usage: capsh [args
...]", to be debugged. ]

I've filed a gdb PR ( https://sourceware.org/bugzilla/show_bug.cgi?id=31520 )
pointing out that IWBN to have a script somewhere that supports this.


You are receiving this mail because: