Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756061AbYCXXa0 (ORCPT ); Mon, 24 Mar 2008 19:30:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751726AbYCXXaR (ORCPT ); Mon, 24 Mar 2008 19:30:17 -0400 Received: from x346.tv-sign.ru ([89.108.83.215]:35358 "EHLO mail.screens.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752562AbYCXXaQ (ORCPT ); Mon, 24 Mar 2008 19:30:16 -0400 Date: Tue, 25 Mar 2008 02:29:22 +0300 From: Oleg Nesterov To: Andrew Morton Cc: ebiederm@xmission.com, xemul@openvz.org, pavel@ucw.cz, sds@tycho.nsa.gov, roland@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ptrace: it is fun to strace /sbin/init Message-ID: <20080324232922.GA207@tv-sign.ru> References: <20080323135110.GA294@tv-sign.ru> <20080324152906.dee7b272.akpm@linux-foundation.org> <20080324225611.GA157@tv-sign.ru> <20080324160819.cea2d921.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080324160819.cea2d921.akpm@linux-foundation.org> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1561 Lines: 42 On 03/24, Andrew Morton wrote: > > On Tue, 25 Mar 2008 01:56:11 +0300 > Oleg Nesterov wrote: > > > On 03/24, Andrew Morton wrote: > > > > > > On Sun, 23 Mar 2008 16:51:10 +0300 > > > Oleg Nesterov wrote: > > > > > > > Ptracing of /sbin/init is not allowed. Of course, this is dangerous, but may > > > > be useful. Introduce the kernel boot parameter to allow this, so that we can't > > > > surprise some special/secured systems. > > > > > > I dunno, is this really needed? > > > > Well, this is the question. I think it would be very nice to have the ability > > to debug/strace init. Especially if you try to make your own distribution / > > your own init. > > > > Sometimes I see init at the top of the top's output, with this patch I have a > > chance to see what's going on on my system. > > I agree that init should be ptraceable. I'm questioning the value of a > knob which enables that ability. > > Why not just unconditionally enable root's abiltiy to ptrace init? Ah, sorry, I misunderstood. As for me, I think it would be right to allow to ptrace init unconditionally. But I'd like to know what security people think, I am very much afraid there is something I don't know/understand (like it happened with "don't panic if /sbin/init exits or killed"). Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/