Date: Thu, 14 Aug 2003 22:25:06 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sys_process.c src/sys/sys ptrace.h Message-ID: <200308150525.h7F5P6re018527@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2003/08/14 22:25:06 PDT FreeBSD src repository Modified files: sys/kern sys_process.c sys/sys ptrace.h Log: 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308150525.h7F5P6re018527>