* ptrace patch side-effects on 2.4.x
@ 2003-04-07 12:09 Jakub Bogusz
0 siblings, 0 replies; only message in thread
From: Jakub Bogusz @ 2003-04-07 12:09 UTC (permalink / raw)
To: linux-kernel
Hello,
I've noticed a few side-effects of using ptrace patch on Linux 2.4.x
(2.4.18 and 2.4.20 tested, with patch from
http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch; ptrace
changes in 2.4.21-pre6 look the same, so I expect the same side-effects
in 2.4.21-pre6).
Most of these problems already were mentioned here, but I couldn't find
proper ptrace patch or any set of fixes which could resolve all problems.
Is there any now?
Summarizing: for some processes (like apache, postfix... generally those
which were started with uid=0 and dropped some privileges on startup?):
- /proc/PID/cmdline and /proc/PID/environ are empty (ps displays those
processes in [] brackets, like swapped out); I saw a patch on
LKML, but it enabled this data only for root; previous behaviour
was to allow reading cmdline for all users (blocking it can break some
monitoring systems)
- *trace commands (using ptrace syscall) on such processes don't work
from root account - e.g. strace on httpd shows only:
trace: ptrace(PTRACE_SYSCALL, ...): Operation not permitted
and leaves stopped process (kill -CONT must be used to start it again)
PS. please Cc comments to me. Thanks.
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
PLD Linux http://www.pld.org.pl/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-07 11:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 12:09 ptrace patch side-effects on 2.4.x Jakub Bogusz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®