From owner-cvs-all@FreeBSD.ORG Thu Aug 14 22:25:09 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E27C37B401; Thu, 14 Aug 2003 22:25:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F1943FD7; Thu, 14 Aug 2003 22:25:07 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7F5P60U018528; Thu, 14 Aug 2003 22:25:06 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7F5P6re018527; Thu, 14 Aug 2003 22:25:06 -0700 (PDT) Message-Id: <200308150525.h7F5P6re018527@repoman.freebsd.org> From: Marcel Moolenaar Date: Thu, 14 Aug 2003 22:25:06 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sys_process.c src/sys/sys ptrace.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2003 05:25:09 -0000 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