I have confirmed this fix. Before upgrade, trying to attach to a process with gdb as non-root fails with 'ptrace: Operation not permitted.' After upgrade, it instead outputs the full explanation:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
If I set kernel.yama.ptrace_scope=0, gdb still works correctly with no errors. Likewise, it works fine when attaching as root.
I have confirmed this fix. Before upgrade, trying to attach to a process with gdb as non-root fails with 'ptrace: Operation not permitted.' After upgrade, it instead outputs the full explanation:
Could not attach to process. If your uid matches the uid of the target kernel/ yama/ptrace_ scope, or try d/10-ptrace. conf
process, check the setting of /proc/sys/
again as the root user. For more details, see /etc/sysctl.
ptrace: Operation not permitted.
If I set kernel. yama.ptrace_ scope=0, gdb still works correctly with no errors. Likewise, it works fine when attaching as root.
Marking verification-done, copying to -updates.