Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 29418 invoked from network); 24 Sep 2010 01:57:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 01:57:01 -0000 Received: (qmail 85419 invoked by uid 500); 24 Sep 2010 01:57:00 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 85355 invoked by uid 500); 24 Sep 2010 01:57:00 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 85347 invoked by uid 99); 24 Sep 2010 01:57:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 01:57:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.29] (HELO smtpauth17.prod.mesa1.secureserver.net) (64.202.165.29) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 24 Sep 2010 01:56:52 +0000 Received: (qmail 18787 invoked from network); 24 Sep 2010 01:48:05 -0000 Received: from unknown (76.252.112.72) by smtpauth17.prod.mesa1.secureserver.net (64.202.165.29) with ESMTP; 24 Sep 2010 01:48:05 -0000 Message-ID: <4C9C0543.5020606@rowe-clan.net> Date: Thu, 23 Sep 2010 20:56:19 -0500 From: "William A. Rowe Jr." User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1000593 - in /httpd/httpd/trunk: CHANGES server/util_script.c References: <20100923195015.5555A23888FD@eris.apache.org> <4C9BB23B.6080302@rowe-clan.net> <4C9BD70E.8070309@rowe-clan.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/23/2010 6:58 PM, Jeff Trawick wrote: > > These two are somewhat different in practice. > > When the path to the binary is omitted on the invocation/load, the shell/loader/whatever finds > > * executables only because of the PATH envvar Correct > * shared libraries usually via the system search path or in the executable/other-library's > rpath Typically, yes > PATH always, LD_LIBRARY_PATH in exceptional situations And always permitted at the shell prior to execution. But once httpd has started, dropping LD_LIBRARY_PATH deprives the kernel of resolving such libraries, due to our arbitrary choice to propagate PATH, but not propagate LD_LIBRARY_PATH... leading potentially to broken process invocations. Does this make sense? E.g. the choice to propagate PATH, but not LD_LIBRARY_PATH, seems foolish. For those who wish to argue the 'unsafety' of relocatable/dynamic path resolutions, is there really any difference between propagating PATH but not LD_LIBRARY_PATH?