LWN.net Logo

Ptrace vulnerability in 2.2 and 2.4 kernels

Ptrace vulnerability in 2.2 and 2.4 kernels

Posted Mar 18, 2003 20:32 UTC (Tue) by brianr (subscriber, #2180)
In reply to: Ptrace vulnerability in 2.2 and 2.4 kernels by bkw1a
Parent article: Ptrace vulnerability in 2.2 and 2.4 kernels

Such a module works by wrapping or stubbing the ptrace function in the kernel. You can do this yourself creating a small module with a do-nothing fake_ptrace function. During module init, set sys_call_table[__NR_ptrace]=fake_ptrace so the fake ptrace gets run instead of the real one. Search google for "no ptrace module" to find a few readymade ptrace wrapper/stub modules.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds