Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2010 21:01:37 +0200
From:      Ali Polatel <alip@exherbo.org>
To:        freebsd-hackers@freebsd.org
Subject:   ptrace bug or feature?
Message-ID:  <20100116190137.GA11414@harikalardiyari>

next in thread | raw e-mail | index | archive | help

--+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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100116190137.GA11414>