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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110219/ccdad9bb/attachment.html>
on 13:29 Sat 19 Feb, Eric Gerzon (ericgerzon at 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 permittedAs 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.-- Dr. Ed Morbius, Chief Scientist / | Robot Wrangler / Staff Psychologist | When you seek unlimited power Krell Power Systems Unlimited | Go to Krell!
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