Re: Process Debugging questions



Hi Dag-Erling,

On Sat, Nov 11, 2006 at 11:51:57PM +0100, Dag-Erling Smørgrav wrote:
trowa-4 <trowa-4@xxxxxxxxxxxx> writes:
FreeBSD provides the ptrace system call for controlling and
debugging the execution of a process.

An alternative to the ptrace system call is the /proc filesystem.

The functionality provided by the /proc filesystem is the same as
that provided by ptrace; if differs only in its interface.

Are there having a better method or other method?

They both suck, for different reasons. In theory, ptrace sucks less
than proc, but it lacks some of proc's functionality, and fixing that
is very hard.

Would you take a little time to tell what ptrace lacks and possibly
why it is so hard, please ?

Thank you.
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: -mm -> 2.6.13 merge status (fuse)
    ... > the filesystem for any task, which the filesystem owner (the user who ... It's saying "if I can ptrace you, ... solution within fuse is appropriate. ... This security feature doesn't sounds terribly important to me. ...
    (Linux-Kernel)
  • Re: Process Debugging questions
    ... The functionality provided by the /proc filesystem is the same as that provided by ptrace; if differs only in its interface. ... procfs has been a major source of security vulnerabilities for all major UNIX platforms that have used it. ...
    (freebsd-hackers)
  • Re: Process Debugging questions
    ... An alternative to the ptrace system call is the /proc filesystem. ... The functionality provided by the /proc filesystem is the same as ... In theory, ptrace sucks less ...
    (freebsd-hackers)
  • Re: -mm -> 2.6.13 merge status (fuse)
    ... > the filesystem for any task, which the filesystem owner (the user who ... > did the mount) is not allowed to ptrace. ... because obviously root owned tasks are not ... might _want_ to give permission to allow a trusted FUSE ...
    (Linux-Kernel)
  • [RFC] [Patch 1/1] [Self Ptrace] System call notification with self_ptrace
    ... Activation and de-activation of the functionality through ptrace ... It follows the patch itself. ... system call notification with self_ptrace ...
    (Linux-Kernel)