lkml.org 
[lkml]   [2008]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ptrace: it is fun to strace /sbin/init
On 03/25, Andi Kleen wrote:
>
> Andrew Morton <akpm@linux-foundation.org> writes:
> >
> > Why not just unconditionally enable root's abiltiy to ptrace init?
>
> It would be fine to allow this unconditionally if there was some mechanism
> to make sure someone else takes over reaping childs while init is ptraced.

I think we can't do this. From my /etc/inittab:

c1:1235:respawn:/sbin/agetty 38400 tty1 linux

If /sbin/agetty exits, we shouldn't reap it. /sbin/init should notice
the death of login, and respawn the new child.

Thanks to all for replies! I'll re-send this patch as one-liner, without
any boot params or sysctls, and with long CC list.

I hope someone (not me) will make a final authoritative decision ;)

Oleg.



\
 
 \ /
  Last update: 2008-03-25 18:41    [W:0.095 / U:1.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site