Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757575AbYCXQBR (ORCPT ); Mon, 24 Mar 2008 12:01:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753385AbYCXQBE (ORCPT ); Mon, 24 Mar 2008 12:01:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:53678 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753253AbYCXQBD (ORCPT ); Mon, 24 Mar 2008 12:01:03 -0400 Date: Mon, 24 Mar 2008 17:01:02 +0100 From: Pavel Machek To: Oleg Nesterov Cc: Andrew Morton , "Eric W. Biederman" , Pavel Emelyanov , Stephen Smalley , Roland McGrath , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ptrace: it is fun to strace /sbin/init Message-ID: <20080324160102.GB4069@atrey.karlin.mff.cuni.cz> References: <20080323135110.GA294@tv-sign.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080323135110.GA294@tv-sign.ru> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 35 Hi! > 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. > > Afaics, with the recent changes there is no kernel problems with ptracing init, > it can't lose SIGNAL_UNKILLABLE flag and be killed by accident. However, admin > should know what it does, "gdb /sbin/init 1" stops init, it can't > reap zombies It can't be killed, but you can stop it and not ever restart it. From that point on, zombies will accumulate until we OOM, right? > @@ -803,6 +803,8 @@ and is between 256 and 4096 characters. > Run specified binary instead of /sbin/init as init > process. > > + init_ptrace [KNL] Allows to ptrace init. > + No words about it being dangerous, but I believe it is. If it is not, lets do the patch, but not optional. If it is dangerous, option does not make it better. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/