Hello,
I am trying to get some more information about the following issue:
# strace -p 2256 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
I am trying to trace an mdadm re-sync pid and I keep getting the above error.
I have done some digging on google and forums, but have not had much luck.
Redhat-release says
CentOS release 5.5 (Final)
uname: 2.6.18-194.32.1.el5
Any help would be great.
-Eric
on 13:29 Sat 19 Feb, Eric Gerzon (ericgerzon@gmail.com) wrote:
Hello,
I am trying to get some more information about the following issue:
# strace -p 2256 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
As root? (Prompt suggests yes).
Is another strace attached to the process already (or gdb session)?
Some kernel hardening / selinux features may interfere with this as well, though I don't know specifics.
I am trying to trace an mdadm re-sync pid and I keep getting the above error.
I have done some digging on google and forums, but have not had much luck.
Redhat-release says
CentOS release 5.5 (Final)
uname: 2.6.18-194.32.1.el5
Any help would be great.
Eric Gerzon wrote:
Hello,
I am trying to get some more information about the following issue:
# strace -p 2256 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
I am trying to trace an mdadm re-sync pid and I keep getting the above error.
I believe the MD re-sync process is actually a kernel thread - and you can't strace kernel threads.
James Pearson
That works for me. Thanks James!
On Sun, Feb 20, 2011 at 4:34 AM, James Pearson james-p@moving-picture.comwrote:
Eric Gerzon wrote:
Hello,
I am trying to get some more information about the following issue:
# strace -p 2256 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
I am trying to trace an mdadm re-sync pid and I keep getting the above error.
I believe the MD re-sync process is actually a kernel thread - and you can't strace kernel threads.
James Pearson _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos