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
沒有留言:
張貼留言