cvs commit: src/sys/kern sys_process.c src/sys/sys ptrace.h

Marcel Moolenaar marcel at
Thu Aug 14 22:25:09 PDT 2003

marcel      2003/08/14 22:25:06 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             sys_process.c 
    sys/sys              ptrace.h 
  Add or finish support for machine dependent ptrace requests. When we
  check for permissions, do it for all requests, not the known requests.
  Later when we actually service the request we deal with the invalid
  requests we previously caught earlier.
  This commit changes the behaviour of the ptrace(2) interface for
  boundary cases such as an unknown request without proper permissions.
  Previously we would return EINVAL. Now we return EBUSY or EPERM.
  Platforms need to define __HAVE_PTRACE_MACHDEP when they have MD
  requests. This makes the prototype of cpu_ptrace() visible and
  introduces a call to this function for all requests greater or
  equal to PT_FIRSTMACH.
  Silence on: audit
  Revision  Changes    Path
  1.114     +13 -22    src/sys/kern/sys_process.c
  1.20      +4 -0      src/sys/sys/ptrace.h

More information about the cvs-src mailing list