public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why can't I ptrace init (pid == 1) ?
@ 2001-06-19 16:03 richard offer
  2001-06-20  8:37 ` Helge Hafting
  0 siblings, 1 reply; 4+ messages in thread
From: richard offer @ 2001-06-19 16:03 UTC (permalink / raw)
  To: linux-kernel



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
_______________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-06 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox