Messages in this thread | | | Date | Tue, 25 Mar 2008 20:42:51 +0300 | From | Oleg Nesterov <> | Subject | Re: [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.
| |