|
|||||||||||
|
Re: Preventing ptrace()
From: Brian Hatch <secprog(at)ifokr.org>
Date: Tue Dec 31 2002 - 13:31:12 EST > You have to remove the CAP_SYS_PTRACE to all processes running in the
You could easily remove this capability globally using LCAP[1], which modifies /proc/sys/kernel/cap-bound to remove it directly. Alternatively, you could use an LKM[2] to capture and refuse any use of the ptrace syscall itself. These have the benifit of being non-kernel specific - no patches are needed. If you have a security-enhanced kernel such as grsecurity, then you should use it's built in capabilities limiting functionality though. [1] The original page seems to have gone AWOL, but you can find it in RPM form or as source here and there, such as from SecurityFocus. Do a google. [2] For example http://www.hackinglinuxexposed.com/tools/p/noptrace.c.html -- Brian Hatch Never knock on Death's door. Systems and Ring the doorbell and run. Security Engineer He hates that. http://www.ifokr.org/bri/ Every message PGP signed
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:44 EDT |
||||||||||
|
|||||||||||