mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jakub Bogusz <qboosh@pld.org.pl>
To: linux-kernel@vger.kernel.org
Subject: ptrace patch side-effects on 2.4.x
Date: Mon, 7 Apr 2003 14:09:37 +0200	[thread overview]
Message-ID: <20030407120937.GA3201@gruby.cs.net.pl> (raw)

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/

                 reply	other threads:[~2003-04-07 11:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030407120937.GA3201@gruby.cs.net.pl \
    --to=qboosh@pld.org.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®