I'm going to use the strace -p <myPid>
command between two applications.
However, strace
command does not work with other applications (it works well for itself).
This is the error message:
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
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
If the command error occurs because of the difference of uid
, can I fix modifies the uid
?
Or is there any other solutions?