Open MrQuansy opened 9 months ago
In production environment, we can not always get a 'sudo permission' all the time. I find py-spy can run through starting a new process without root permission as document said. But permission denied occurred when I tried it.
Take a look at https://man7.org/linux/man-pages/man7/capabilities.7.html and https://www.vultr.com/docs/working-with-linux-capabilities/
My guess is that you need to add cap_sys_ptrace
In production environment, we can not always get a 'sudo permission' all the time. I find py-spy can run through starting a new process without root permission as document said. But permission denied occurred when I tried it.