From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 16 19:28:18 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21865106566C for ; Sat, 16 Jan 2010 19:28:18 +0000 (UTC) (envelope-from polatel@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id A544D8FC14 for ; Sat, 16 Jan 2010 19:28:17 +0000 (UTC) Received: by ewy26 with SMTP id 26so2026949ewy.3 for ; Sat, 16 Jan 2010 11:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=yWy2EiMQNqhzdeWRq8s+BMfeicRXQLOOukzLw8k2zao=; b=ui9ml3qUbi+CuGjQbxdOOgfAiV7pR53FFwoh4HLdQWGTx0JkAaNFMREQ/glcpAOp9u uKB5n8+Eyrei/VBkiSj7QdSJIZmqrhXYGiNetbSndw16z9L+ymzlbsrHKyfGbB7J3OZX koqzMhrUCDwHhtq41hEA/oM0juBze2TjHjKqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=ChlHXESuZj5JSR45/Y2ue/ci3xO1YirbJAxT4z/qATJhlVZMZ+2r+ebimBURk13ldw uAz25QkmmwzSumuNkhaPwpfz7MJIpDMy/OjiRhlj3vSD/K7Ekjm7fqr4MODsTgOuB7Tv zsGq4MlaahV6Bd8/dNianB1fegNHmZNbUO22M= Received: by 10.213.2.67 with SMTP id 3mr1405878ebi.77.1263668504289; Sat, 16 Jan 2010 11:01:44 -0800 (PST) Received: from harikalardiyari ([78.179.49.34]) by mx.google.com with ESMTPS id 7sm3133499eyb.18.2010.01.16.11.01.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Jan 2010 11:01:44 -0800 (PST) Sender: Ali Polatel Date: Sat, 16 Jan 2010 21:01:37 +0200 From: Ali Polatel To: freebsd-hackers@freebsd.org Message-ID: <20100116190137.GA11414@harikalardiyari> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: ptrace bug or feature? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2010 19:28:18 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey everyone, Problem: ptrace's PT_SETREGS request can't alter system calls. Code: http://alip.github.com/code/ptrace-freebsd-deny.c Expected: The file foo.bar shouldn't be created. Got: The file is created. Other efforts like replacing PT_GETREGS/PT_SETREGS calls with PT_KILL doesn't help, the file is created nevertheless. I'm inclined to call this a bug but I can't be sure. Any comments appreciated. TIA --=20 Regards, Ali Polatel --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEABECAAYFAktSDREACgkQQU4yORhF8iAfoACgwQg6X/QZ9pKQ/mYm3zc152Wx 1h4AoJpuneWLGoFVs7cwRTjZPqUQfUzP =hZNV -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--