From: richard offer <offer@sgi.com>
To: linux-kernel@vger.kernel.org
Subject: Why can't I ptrace init (pid == 1) ?
Date: Tue, 19 Jun 2001 09:03:23 -0700 [thread overview]
Message-ID: <102490000.992966603@changeling.engr.sgi.com> (raw)
In arch/i386/kernel/ptrace.c there is the following code ...
ret = -EPERM;
if (pid == 1) /* you may not mess with init */
goto out_tsk;
What is the rationale for this ? Is this a real security decision or
an implementation detail (bad things will happen).
Thoughts ?
richard.
-----------------------------------------------------------------------
Richard Offer Technical Lead, Trust Technology
"Specialization is for insects" SGI
_______________________________________________________________________
next reply other threads:[~2001-06-19 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-19 16:03 richard offer [this message]
2001-06-20 8:37 ` Why can't I ptrace init (pid == 1) ? Helge Hafting
2001-06-20 8:45 ` Miquel van Smoorenburg
2001-08-06 22:05 ` Mike Coleman
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=102490000.992966603@changeling.engr.sgi.com \
--to=offer@sgi.com \
--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