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

From: Krzysztof Halasa
Date: Tue Mar 25 2008 - 10:16:27 EST


Andi Kleen <andi@xxxxxxxxxxxxxx> writes:

> 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.

Well, I think it isn't even necessary, unless you ptrace init for a
long time. I would simply go with the simple 1-line patch.

> I like the general idea -- i used to patch kernels to allow this too,
> but it is dangerous.

Though root-only. Root doesn't want to be limited and knows better
anyway. I think ptracing init is useful even when no one takes care
of the dead (especially if you want to trace waits).
--
Krzysztof Halasa
--
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/