Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261238AbUJYViU (ORCPT ); Mon, 25 Oct 2004 17:38:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261972AbUJYPTN (ORCPT ); Mon, 25 Oct 2004 11:19:13 -0400 Received: from phoenix.infradead.org ([81.187.226.98]:60684 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S261963AbUJYPSn (ORCPT ); Mon, 25 Oct 2004 11:18:43 -0400 Date: Mon, 25 Oct 2004 16:18:42 +0100 From: Christoph Hellwig To: Mike Waychison Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, raven@themaw.net Subject: Re: [PATCH 20/28] HOTPLUG: call_usermodehelper callback support Message-ID: <20041025151842.GA1858@infradead.org> Mail-Followup-To: Christoph Hellwig , Mike Waychison , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, raven@themaw.net References: <10987156903663@sun.com> <10987157204162@sun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10987157204162@sun.com> User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by phoenix.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 17 On Mon, Oct 25, 2004 at 10:48:40AM -0400, Mike Waychison wrote: > This patch extends the call_usermodehelper api by adding a callback variant. > The callback is made right when the system is about to call execve into the > new process. This allows for the caller to provide changes to the default > environment right before the exec takes place. Note: the context of the > callback will be _from within another process_. I don't like this at all. First it's the usual fork() + exec() vs spawn() with gazillions of arguments debatte, second this sounds far too complex to do it in kernelspace to me. Why can't you do the enviroment changes from the program beeing executed? - 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/