From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4816 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: MUSL_LIBRARY_PATH ? Date: Sun, 06 Apr 2014 18:17:47 +0100 Message-ID: <53418C3B.8060700@skarnet.org> References: <20140406161827.GY26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396804684 19788 80.91.229.3 (6 Apr 2014 17:18:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2014 17:18:04 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4820-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 06 19:17:59 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WWqhi-0007YX-Cn for gllmg-musl@plane.gmane.org; Sun, 06 Apr 2014 19:17:58 +0200 Original-Received: (qmail 25681 invoked by uid 550); 6 Apr 2014 17:17:57 -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 25673 invoked from network); 6 Apr 2014 17:17:56 -0000 X-SourceIP: 109.255.124.30 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <20140406161827.GY26358@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4816 Archived-At: On 06/04/2014 17:18, Rich Felker wrote: > The obvious workaround is to put a shell script in place of your > actual binary, and have it do: > > exec "$ldso" -- "foo.bin" "$@" > > or similar. Alternatively a minimal static-linked binary could be used > instead of shell script to make it perform better and eliminate some > of the risks of shell script processing. Shameless plug: this is the perfect use case for execline. http://skarnet.org/software/execline/ An execline script will perform better here than a shell script, without the risks, and still offer the editability of a script. -- Laurent