2022年9月29日 星期四

strace encouter : Operation not permitted

strace -fp 1
strace: 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: Operation not permitted
strace: attach: ptrace(PTRACE_SEIZE, 1): Operation not permitted

Get root access

查看 /etc/sysctl.d/10-prace.conf

kernel.yama.ptrace_scope = 1

把下列的值改成0 , 或者
echo > /proc/sys/kernel/yama/ptrace_scope

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote