Re: [PATCH] ptrace: it is fun to strace /sbin/init

From: Oleg Nesterov
Date: Tue Mar 25 2008 - 13:38:24 EST


On 03/25, Andi Kleen wrote:
>
> Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/