From: Mike Coleman <mkc@mathdogs.com>
To: miquels@cistron-office.nl (Miquel van Smoorenburg)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Why can't I ptrace init (pid == 1) ?
Date: 06 Aug 2001 17:05:25 -0500 [thread overview]
Message-ID: <873d74c09m.fsf@mathdogs.com> (raw)
In-Reply-To: <102490000.992966603@changeling.engr.sgi.com> <3B3060C0.B2D368C@idb.hist.no> <9gpnqu$8lv$2@ncc1701.cistron.net>
In-Reply-To: <9gpnqu$8lv$2@ncc1701.cistron.net>
miquels@cistron-office.nl (Miquel van Smoorenburg) writes:
> The reason right now is I think that ptrace mucks around with sibling
> relations and since init is a special 'father of all processes' (or is that
> mother?) that would get the system into trouble real soon.
Yes. Ptrace does a sort of fakey reparenting of traced processes, which won't
work correctly with init, since it's its own parent.
Notice that init *is* currently allowed to do a PTRACE_TRACEME, which would
almost certainly cause the system to fail spectacularly. It's not really a
security problem, since init can do anything anyway, but it does annoy my
aesthetic sensibilities a bit. (The patch I sent to fix this wasn't
incorporated.)
--
Mike Coleman, mkc@mathdogs.com
http://www.mathdogs.com
problem solving, expert software development
prev parent reply other threads:[~2001-08-06 22:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-19 16:03 Why can't I ptrace init (pid == 1) ? richard offer
2001-06-20 8:37 ` Helge Hafting
2001-06-20 8:45 ` Miquel van Smoorenburg
2001-08-06 22:05 ` Mike Coleman [this message]
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=873d74c09m.fsf@mathdogs.com \
--to=mkc@mathdogs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miquels@cistron-office.nl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.