strace라는 시스템 콜 분석 명령어를 이용하여 어플을 개발하고 있습니다.
제 어플 내에서 제 어플에 대한 strace명령어는 잘 작동합니다. 하지만 제 어플 내에서 다른 어플에 대한 strace명령어는 먹히지 않았습니다.
아래는 오류 메세지입니다.
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
아마 대상이 되는 어플의 uid와 실행하는 주체의 uid가 일치해야하는 것 같습니다.
그렇다면 제 어플리케이션의 uid를 수정하여 다른 어플리케이션과 일치시킨 후 접근하는 것도 가능한가요??