lkml.org 
[lkml]   [1999]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectptrace() and kernel tasks
Date
From

ptrace(PTRACE_ATTACH, ...) will succeed for kernel tasks
(e.g. kswapd) if you are root. Subsequent operations fail, but this
appears to be an accident.

Suggestion: clear current->dumpable for kflushd/kpiod/kswapd, so that
PTRACE_ATTACH will fail. Some of the drivers (md, usb, etc.) could
use the same treatment.

It might be sensible to do this for init as well; then the special
case for pid=1 can be removed from sys_ptrace(). OTOH, you might want
the core dump if init crashed.

zw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.095 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site