[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080325174251.GA247@tv-sign.ru>
Date: Tue, 25 Mar 2008 20:42:51 +0300
From: Oleg Nesterov <oleg@...sign.ru>
To: Andi Kleen <andi@...stfloor.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, ebiederm@...ssion.com,
xemul@...nvz.org, pavel@....cz, sds@...ho.nsa.gov,
roland@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ptrace: it is fun to strace /sbin/init
On 03/25, Andi Kleen wrote:
>
> Andrew Morton <akpm@...ux-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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists