ptrace bug or feature?

Ali Polatel alip at exherbo.org
Sat Jan 16 19:28:18 UTC 2010


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

-- 
Regards,
Ali Polatel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100116/1857663a/attachment.pgp


More information about the freebsd-hackers mailing list