From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7309 Path: news.gmane.org!not-for-mail From: u-wsnj@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: --preload and --library-path ? Date: Thu, 2 Apr 2015 14:16:03 +0200 Message-ID: <20150402121603.GC4456@example.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1427977004 28162 80.91.229.3 (2 Apr 2015 12:16:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2015 12:16:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7322-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 02 14:16:36 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yde31-00054R-FL for gllmg-musl@m.gmane.org; Thu, 02 Apr 2015 14:16:35 +0200 Original-Received: (qmail 3557 invoked by uid 550); 2 Apr 2015 12:16:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3534 invoked from network); 2 Apr 2015 12:16:32 -0000 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received-SPF: none receiver=mailfe08.swip.net; client-ip=91.121.159.196; envelope-from=u-wsnj@aetey.se Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7309 Archived-At: On Wed, Apr 01, 2015 at 10:59:22AM -0400, John Mudd wrote: > Where can I get more info on these options? > > 1.1.1 release notes > > new features: > - new options --preload and --library-path to dynamic linker These are a straightforward and proper (safe) equivalent of the traditional poorly designed / unsafe LD_PRELOAD and LD_LIBRARY_PATH environment variables. The options take the arguments with values corresponding to the ones would-be-put into the variables. The first non-option argument to the dynamic loader is the binary to be run, the rest is passed as arguments to the started program. In contrast to the variables these options are not automatically inherited by possible child processes and exhibit the correct and safe behaviour. The variables are atill respected if the corresponding option is not present. Rune